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

Side by Side Diff: chrome/browser/sync/profile_sync_test_util.h

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 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 12 matching lines...) Expand all
23 23
24 ACTION_P(Notify, type) { 24 ACTION_P(Notify, type) {
25 content::NotificationService::current()->Notify( 25 content::NotificationService::current()->Notify(
26 type, 26 type,
27 content::NotificationService::AllSources(), 27 content::NotificationService::AllSources(),
28 content::NotificationService::NoDetails()); 28 content::NotificationService::NoDetails());
29 } 29 }
30 30
31 ACTION(QuitUIMessageLoop) { 31 ACTION(QuitUIMessageLoop) {
32 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); 32 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
33 MessageLoop::current()->Quit(); 33 base::MessageLoop::current()->Quit();
34 } 34 }
35 35
36 class ProfileSyncServiceObserverMock : public ProfileSyncServiceObserver { 36 class ProfileSyncServiceObserverMock : public ProfileSyncServiceObserver {
37 public: 37 public:
38 ProfileSyncServiceObserverMock(); 38 ProfileSyncServiceObserverMock();
39 virtual ~ProfileSyncServiceObserverMock(); 39 virtual ~ProfileSyncServiceObserverMock();
40 40
41 MOCK_METHOD0(OnStateChanged, void()); 41 MOCK_METHOD0(OnStateChanged, void());
42 }; 42 };
43 43
(...skipping 14 matching lines...) Expand all
58 58
59 void NotifyTask(int type, 59 void NotifyTask(int type,
60 const content::NotificationSource& source, 60 const content::NotificationSource& source,
61 const content::NotificationDetails& details); 61 const content::NotificationDetails& details);
62 62
63 base::WaitableEvent done_event_; 63 base::WaitableEvent done_event_;
64 base::Thread* notify_thread_; 64 base::Thread* notify_thread_;
65 }; 65 };
66 66
67 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_ 67 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_unittest.cc ('k') | chrome/browser/sync/sync_prefs_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698