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

Side by Side Diff: chrome/browser/sync/backend_migrator_unittest.cc

Issue 408003002: [Sync] Fix namespace for sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 "chrome/browser/sync/backend_migrator.h" 5 #include "chrome/browser/sync/backend_migrator.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/tracked_objects.h" 8 #include "base/tracked_objects.h"
9 #include "chrome/browser/chrome_notification_types.h" 9 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/sync/profile_sync_service_mock.h" 10 #include "chrome/browser/sync/profile_sync_service_mock.h"
11 #include "components/sync_driver/data_type_manager_mock.h" 11 #include "components/sync_driver/data_type_manager_mock.h"
12 #include "sync/internal_api/public/base/model_type_test_util.h" 12 #include "sync/internal_api/public/base/model_type_test_util.h"
13 #include "sync/internal_api/public/test/test_user_share.h" 13 #include "sync/internal_api/public/test/test_user_share.h"
14 #include "sync/internal_api/public/write_transaction.h" 14 #include "sync/internal_api/public/write_transaction.h"
15 #include "sync/protocol/sync.pb.h" 15 #include "sync/protocol/sync.pb.h"
16 #include "sync/syncable/directory.h" // TODO(tim): Remove. Bug 131130. 16 #include "sync/syncable/directory.h" // TODO(tim): Remove. Bug 131130.
17 #include "testing/gmock/include/gmock/gmock.h" 17 #include "testing/gmock/include/gmock/gmock.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 using ::testing::_; 20 using ::testing::_;
21 using ::testing::Eq; 21 using ::testing::Eq;
22 using ::testing::Mock; 22 using ::testing::Mock;
23 using ::testing::NiceMock; 23 using ::testing::NiceMock;
24 using ::testing::Return; 24 using ::testing::Return;
25 using sync_driver::DataTypeManager;
26 using sync_driver::DataTypeManagerMock;
25 27
26 namespace browser_sync { 28 namespace browser_sync {
27 29
28 using syncer::sessions::SyncSessionSnapshot; 30 using syncer::sessions::SyncSessionSnapshot;
29 31
30 class SyncBackendMigratorTest : public testing::Test { 32 class SyncBackendMigratorTest : public testing::Test {
31 public: 33 public:
32 SyncBackendMigratorTest() : service_(&profile_) { } 34 SyncBackendMigratorTest() : service_(&profile_) { }
33 virtual ~SyncBackendMigratorTest() { } 35 virtual ~SyncBackendMigratorTest() { }
34 36
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 EXPECT_CALL( 335 EXPECT_CALL(
334 *manager(), 336 *manager(),
335 PurgeForMigration(_, syncer::CONFIGURE_REASON_MIGRATION)).Times(1); 337 PurgeForMigration(_, syncer::CONFIGURE_REASON_MIGRATION)).Times(1);
336 migrator()->MigrateTypes(to_migrate); 338 migrator()->MigrateTypes(to_migrate);
337 SetUnsyncedTypes(syncer::ModelTypeSet()); 339 SetUnsyncedTypes(syncer::ModelTypeSet());
338 SendConfigureDone(DataTypeManager::ABORTED, syncer::ModelTypeSet()); 340 SendConfigureDone(DataTypeManager::ABORTED, syncer::ModelTypeSet());
339 EXPECT_EQ(BackendMigrator::IDLE, migrator()->state()); 341 EXPECT_EQ(BackendMigrator::IDLE, migrator()->state());
340 } 342 }
341 343
342 }; // namespace browser_sync 344 }; // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/backend_migrator.cc ('k') | chrome/browser/sync/glue/autofill_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698