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

Unified Diff: chrome/browser/signin/signin_tracker_unittest.cc

Issue 15421011: Use OAuth2 token for sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/chrome_startup_flags.cc ('k') | chrome/browser/sync/about_sync_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/signin_tracker_unittest.cc
diff --git a/chrome/browser/signin/signin_tracker_unittest.cc b/chrome/browser/signin/signin_tracker_unittest.cc
index bf5869eab9b1355ee27e9cc944b2f34abfbef44a..b8fca1a879eb62b888a867243eda805e23682fa4 100644
--- a/chrome/browser/signin/signin_tracker_unittest.cc
+++ b/chrome/browser/signin/signin_tracker_unittest.cc
@@ -18,6 +18,7 @@
#include "chrome/browser/sync/profile_sync_service_mock.h"
#include "chrome/common/chrome_notification_types.h"
#include "content/public/browser/notification_service.h"
+#include "content/public/test/test_browser_thread.h"
#include "google_apis/gaia/gaia_constants.h"
#include "google_apis/gaia/google_service_auth_error.h"
@@ -58,7 +59,8 @@ class MockObserver : public SigninTracker::Observer {
class SigninTrackerTest : public testing::Test {
public:
- SigninTrackerTest() {}
+ SigninTrackerTest()
+ : ui_thread_(content::BrowserThread::UI, &ui_loop_) {}
virtual void SetUp() OVERRIDE {
profile_.reset(new TestingProfile());
mock_token_service_ = static_cast<MockTokenService*>(
@@ -90,6 +92,8 @@ class SigninTrackerTest : public testing::Test {
FakeSigninManagerBase* mock_signin_manager_;
MockTokenService* mock_token_service_;
MockObserver observer_;
+ base::MessageLoop ui_loop_;
+ content::TestBrowserThread ui_thread_;
};
TEST_F(SigninTrackerTest, GaiaSignInFailed) {
« no previous file with comments | « chrome/browser/android/chrome_startup_flags.cc ('k') | chrome/browser/sync/about_sync_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698