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

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

Issue 1501123003: Componentize ProfileSyncServiceMock (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@565305_InitParam
Patch Set: Just rebased Created 5 years 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
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"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/synchronization/waitable_event.h" 13 #include "base/synchronization/waitable_event.h"
14 #include "chrome/browser/sync/profile_sync_service_mock.h" 14 #include "components/browser_sync/browser/profile_sync_service_mock.h"
15 #include "components/sync_driver/sync_service_observer.h" 15 #include "components/sync_driver/sync_service_observer.h"
16 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
17 #include "content/public/browser/notification_service.h" 17 #include "content/public/browser/notification_service.h"
18 #include "content/public/browser/notification_source.h" 18 #include "content/public/browser/notification_source.h"
19 #include "content/public/browser/notification_types.h" 19 #include "content/public/browser/notification_types.h"
20 #include "testing/gmock/include/gmock/gmock.h" 20 #include "testing/gmock/include/gmock/gmock.h"
21 21
22 namespace base { 22 namespace base {
23 class Thread; 23 class Thread;
24 class Time; 24 class Time;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // A utility used by sync tests to create a TestingProfile with a Google 97 // A utility used by sync tests to create a TestingProfile with a Google
98 // Services username stored in a (Testing)PrefService. 98 // Services username stored in a (Testing)PrefService.
99 scoped_ptr<TestingProfile> MakeSignedInTestingProfile(); 99 scoped_ptr<TestingProfile> MakeSignedInTestingProfile();
100 100
101 // Helper routine to be used in conjunction with 101 // Helper routine to be used in conjunction with
102 // BrowserContextKeyedServiceFactory::SetTestingFactory(). 102 // BrowserContextKeyedServiceFactory::SetTestingFactory().
103 scoped_ptr<KeyedService> BuildMockProfileSyncService( 103 scoped_ptr<KeyedService> BuildMockProfileSyncService(
104 content::BrowserContext* context); 104 content::BrowserContext* context);
105 105
106 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_ 106 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_mock.cc ('k') | chrome/browser/sync/sync_error_notifier_ash_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698