Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(408)

Side by Side Diff: chrome/browser/sync/signin_manager_unittest.cc

Issue 8438034: Moving the SignalingTask class to base/test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Addressed comments Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/password_manager/password_store_x_unittest.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/sync/signin_manager.h" 5 #include "chrome/browser/sync/signin_manager.h"
6 6
7 #include "base/test/signaling_task.h"
7 #include "chrome/browser/net/gaia/token_service.h" 8 #include "chrome/browser/net/gaia/token_service.h"
8 #include "chrome/browser/net/gaia/token_service_unittest.h" 9 #include "chrome/browser/net/gaia/token_service_unittest.h"
9 #include "chrome/browser/password_manager/encryptor.h" 10 #include "chrome/browser/password_manager/encryptor.h"
10 #include "chrome/browser/sync/util/oauth.h" 11 #include "chrome/browser/sync/util/oauth.h"
11 #include "chrome/browser/webdata/web_data_service.h" 12 #include "chrome/browser/webdata/web_data_service.h"
12 #include "chrome/common/chrome_notification_types.h" 13 #include "chrome/common/chrome_notification_types.h"
13 #include "chrome/common/net/gaia/gaia_urls.h" 14 #include "chrome/common/net/gaia/gaia_urls.h"
14 #include "chrome/test/base/signaling_task.h"
15 #include "chrome/test/base/testing_profile.h" 15 #include "chrome/test/base/testing_profile.h"
16 #include "content/test/test_url_fetcher_factory.h" 16 #include "content/test/test_url_fetcher_factory.h"
17 #include "net/url_request/url_request.h" 17 #include "net/url_request/url_request.h"
18 #include "net/url_request/url_request_status.h" 18 #include "net/url_request/url_request_status.h"
19 19
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 21
22 class SigninManagerTest : public TokenServiceTestHarness { 22 class SigninManagerTest : public TokenServiceTestHarness {
23 public: 23 public:
24 virtual void SetUp() OVERRIDE { 24 virtual void SetUp() OVERRIDE {
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 TEST_F(SigninManagerTest, SignOutOnUserInfoSucessRaceTest) { 246 TEST_F(SigninManagerTest, SignOutOnUserInfoSucessRaceTest) {
247 browser_sync::SetIsUsingOAuthForTest(true); 247 browser_sync::SetIsUsingOAuthForTest(true);
248 manager_->Initialize(profile_.get()); 248 manager_->Initialize(profile_.get());
249 EXPECT_TRUE(manager_->GetUsername().empty()); 249 EXPECT_TRUE(manager_->GetUsername().empty());
250 250
251 SimulateSigninStartOAuth(); 251 SimulateSigninStartOAuth();
252 manager_->SignOut(); 252 manager_->SignOut();
253 SimulateOAuthUserInfoSuccess(); 253 SimulateOAuthUserInfoSuccess();
254 EXPECT_TRUE(manager_->GetUsername().empty()); 254 EXPECT_TRUE(manager_->GetUsername().empty());
255 } 255 }
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_store_x_unittest.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698