namespace policy {
-namespace {
-
-const char kOAuthTokenCookie[] = "oauth_token=1234";
+const char kOAuthCodeCookie[] = "oauth_code=1234; Secure; HttpOnly";
const char kOAuth2TokenPairData[] =
"{"
" \"expires_in\": 3600"
"}";
-} // namespace
-
class UserCloudPolicyManagerChromeOSTest : public testing::Test {
protected:
UserCloudPolicyManagerChromeOSTest()
if (!fetcher)
return NULL;
net::ResponseCookies cookies;
- cookies.push_back(kOAuthTokenCookie);
+ cookies.push_back(kOAuthCodeCookie);
+
fetcher->set_cookies(cookies);
fetcher->delegate()->OnURLFetchComplete(fetcher);