Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / chromeos / policy / user_cloud_policy_manager_chromeos_unittest.cc
index 2040d0a..d25d7dc 100644 (file)
@@ -58,9 +58,7 @@ using testing::_;
 
 namespace policy {
 
-namespace {
-
-const char kOAuthTokenCookie[] = "oauth_token=1234";
+const char kOAuthCodeCookie[] = "oauth_code=1234; Secure; HttpOnly";
 
 const char kOAuth2TokenPairData[] =
     "{"
@@ -75,8 +73,6 @@ const char kOAuth2AccessTokenData[] =
     "  \"expires_in\": 3600"
     "}";
 
-}  // namespace
-
 class UserCloudPolicyManagerChromeOSTest : public testing::Test {
  protected:
   UserCloudPolicyManagerChromeOSTest()
@@ -233,7 +229,8 @@ class UserCloudPolicyManagerChromeOSTest : public testing::Test {
       if (!fetcher)
         return NULL;
       net::ResponseCookies cookies;
-      cookies.push_back(kOAuthTokenCookie);
+      cookies.push_back(kOAuthCodeCookie);
+
       fetcher->set_cookies(cookies);
       fetcher->delegate()->OnURLFetchComplete(fetcher);