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

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

Issue 1692873004: Move ProfileSyncService tests for autofill & typed URLs to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@581640_no_browser_thread
Patch Set: Just rebased Created 4 years, 10 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/test_profile_sync_service.h
diff --git a/chrome/browser/sync/test_profile_sync_service.h b/chrome/browser/sync/test_profile_sync_service.h
deleted file mode 100644
index 097b4b9a702983dfd8acd465cfc60661d4dbdb21..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/test_profile_sync_service.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
-#define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
-
-#include "base/macros.h"
-#include "components/browser_sync/browser/profile_sync_service.h"
-#include "components/sync_driver/data_type_manager.h"
-#include "sync/internal_api/public/util/weak_handle.h"
-#include "sync/js/js_event_handler.h"
-#include "sync/test/engine/test_id_factory.h"
-
-namespace sync_driver {
-class SyncPrefs;
-} // namespace sync_driver
-
-class TestProfileSyncService : public ProfileSyncService {
- public:
- explicit TestProfileSyncService(InitParams init_params);
-
- ~TestProfileSyncService() override;
-
- void OnConfigureDone(
- const sync_driver::DataTypeManager::ConfigureResult& result) override;
-
- // We implement our own version to avoid some DCHECKs.
- syncer::UserShare* GetUserShare() const override;
-
- syncer::TestIdFactory* id_factory();
-
- // Raise visibility to ease testing.
- using ProfileSyncService::NotifyObservers;
-
- sync_driver::SyncPrefs* sync_prefs() { return &sync_prefs_; }
-
- protected:
- // Return NULL handle to use in backend initialization to avoid receiving
- // js messages on UI loop when it's being destroyed, which are not deleted
- // and cause memory leak in test.
- syncer::WeakHandle<syncer::JsEventHandler> GetJsEventHandler() override;
-
- bool NeedBackup() const override;
-
- private:
- syncer::TestIdFactory id_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(TestProfileSyncService);
-};
-
-#endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
« no previous file with comments | « chrome/browser/sync/test/test_http_bridge_factory.cc ('k') | chrome/browser/sync/test_profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698