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

Unified Diff: chrome/browser/sync/profile_sync_test_util.h

Issue 1607473003: Create profile_sync_test_util in components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix iOS Created 4 years, 11 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
Index: chrome/browser/sync/profile_sync_test_util.h
diff --git a/chrome/browser/sync/profile_sync_test_util.h b/chrome/browser/sync/profile_sync_test_util.h
index db21a95e0b2293d1ec62075e165921147c0f68bd..928ced7ad1482e993468ece4d508add45d5b43de 100644
--- a/chrome/browser/sync/profile_sync_test_util.h
+++ b/chrome/browser/sync/profile_sync_test_util.h
@@ -12,19 +12,12 @@
#include "base/message_loop/message_loop.h"
#include "base/synchronization/waitable_event.h"
#include "components/browser_sync/browser/profile_sync_service_mock.h"
-#include "components/sync_driver/sync_service_observer.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_source.h"
#include "content/public/browser/notification_types.h"
#include "testing/gmock/include/gmock/gmock.h"
-namespace base {
-class Thread;
-class Time;
-class TimeDelta;
-}
-
namespace content {
class BrowserContext;
}
@@ -38,12 +31,6 @@ class Profile;
class ProfileSyncServiceMock;
class TestingProfile;
-// An empty syncer::NetworkTimeUpdateCallback. Used in various tests to
-// instantiate ProfileSyncService.
-void EmptyNetworkTimeUpdate(const base::Time&,
- const base::TimeDelta&,
- const base::TimeDelta&);
-
ACTION_P(Notify, type) {
content::NotificationService::current()->Notify(
type,
@@ -56,14 +43,6 @@ ACTION(QuitUIMessageLoop) {
base::MessageLoop::current()->QuitWhenIdle();
}
-class SyncServiceObserverMock : public sync_driver::SyncServiceObserver {
- public:
- SyncServiceObserverMock();
- virtual ~SyncServiceObserverMock();
-
- MOCK_METHOD0(OnStateChanged, void());
-};
-
class ThreadNotifier : // NOLINT
public base::RefCountedThreadSafe<ThreadNotifier> {
public:
« no previous file with comments | « chrome/browser/sync/profile_sync_service_startup_unittest.cc ('k') | chrome/browser/sync/profile_sync_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698