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

Side by Side Diff: chrome/browser/signin/signin_names_io_thread_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/message_loop.h" 5 #include "base/message_loop.h"
6 #include "base/prefs/testing_pref_service.h" 6 #include "base/prefs/testing_pref_service.h"
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/profiles/profile_info_cache.h" 8 #include "chrome/browser/profiles/profile_info_cache.h"
9 #include "chrome/browser/signin/signin_manager.h" 9 #include "chrome/browser/signin/signin_manager.h"
10 #include "chrome/browser/signin/signin_names_io_thread.h" 10 #include "chrome/browser/signin/signin_names_io_thread.h"
(...skipping 11 matching lines...) Expand all
22 class SigninNamesOnIOThreadTest : public testing::Test { 22 class SigninNamesOnIOThreadTest : public testing::Test {
23 public: 23 public:
24 SigninNamesOnIOThreadTest(); 24 SigninNamesOnIOThreadTest();
25 virtual void SetUp() OVERRIDE; 25 virtual void SetUp() OVERRIDE;
26 virtual void TearDown() OVERRIDE; 26 virtual void TearDown() OVERRIDE;
27 27
28 void SimulateSignin(const string16& email); 28 void SimulateSignin(const string16& email);
29 void SimulateSignout(const string16& email); 29 void SimulateSignout(const string16& email);
30 void AddNewProfile(const string16& name, const string16& email); 30 void AddNewProfile(const string16& name, const string16& email);
31 31
32 MessageLoop message_loop_; 32 base::MessageLoop message_loop_;
33 content::TestBrowserThread ui_thread_; 33 content::TestBrowserThread ui_thread_;
34 content::TestBrowserThread io_thread_; 34 content::TestBrowserThread io_thread_;
35 TestingProfileManager testing_profile_manager_; 35 TestingProfileManager testing_profile_manager_;
36 SigninNamesOnIOThread signin_names_; 36 SigninNamesOnIOThread signin_names_;
37 }; 37 };
38 38
39 SigninNamesOnIOThreadTest::SigninNamesOnIOThreadTest() 39 SigninNamesOnIOThreadTest::SigninNamesOnIOThreadTest()
40 : ui_thread_(content::BrowserThread::UI, &message_loop_), 40 : ui_thread_(content::BrowserThread::UI, &message_loop_),
41 io_thread_(content::BrowserThread::IO, &message_loop_), 41 io_thread_(content::BrowserThread::IO, &message_loop_),
42 testing_profile_manager_( 42 testing_profile_manager_(
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 SigninNamesOnIOThread signin_names; 124 SigninNamesOnIOThread signin_names;
125 125
126 const SigninNamesOnIOThread::EmailSet& emails = signin_names.GetEmails(); 126 const SigninNamesOnIOThread::EmailSet& emails = signin_names.GetEmails();
127 ASSERT_EQ(2u, emails.size()); 127 ASSERT_EQ(2u, emails.size());
128 ASSERT_EQ(1u, emails.count(email1)); 128 ASSERT_EQ(1u, emails.count(email1));
129 ASSERT_EQ(1u, emails.count(email2)); 129 ASSERT_EQ(1u, emails.count(email2));
130 130
131 signin_names.ReleaseResourcesOnUIThread(); 131 signin_names.ReleaseResourcesOnUIThread();
132 } 132 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_manager_unittest.cc ('k') | chrome/browser/signin/token_service_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698