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

Side by Side Diff: components/sync/driver/backend_migrator_unittest.cc

Issue 2389063002: [Sync] Fixing easy lint violations. (Closed)
Patch Set: Updated for Max's comments. Created 4 years, 2 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
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 "components/sync/driver/backend_migrator.h" 5 #include "components/sync/driver/backend_migrator.h"
6 6
7 #include <memory>
8
7 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
8 #include "base/run_loop.h" 10 #include "base/run_loop.h"
9 #include "base/tracked_objects.h" 11 #include "base/tracked_objects.h"
10 #include "components/sync/base/model_type_test_util.h" 12 #include "components/sync/base/model_type_test_util.h"
11 #include "components/sync/core/test/test_user_share.h" 13 #include "components/sync/core/test/test_user_share.h"
12 #include "components/sync/core/write_transaction.h" 14 #include "components/sync/core/write_transaction.h"
13 #include "components/sync/driver/data_type_manager_mock.h" 15 #include "components/sync/driver/data_type_manager_mock.h"
14 #include "components/sync/driver/fake_sync_service.h" 16 #include "components/sync/driver/fake_sync_service.h"
15 #include "components/sync/protocol/sync.pb.h" 17 #include "components/sync/protocol/sync.pb.h"
16 #include "components/sync/syncable/directory.h" // TODO(tim): Remove. Bug 13113 0. 18 #include "components/sync/syncable/directory.h"
17 #include "testing/gmock/include/gmock/gmock.h" 19 #include "testing/gmock/include/gmock/gmock.h"
18 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
19 21
20 using ::testing::_; 22 using ::testing::_;
21 using ::testing::Eq; 23 using ::testing::Eq;
22 using ::testing::Mock; 24 using ::testing::Mock;
23 using ::testing::NiceMock; 25 using ::testing::NiceMock;
24 using ::testing::Return; 26 using ::testing::Return;
25 27
26 namespace syncer { 28 namespace syncer {
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 EXPECT_CALL(*manager(), state()) 296 EXPECT_CALL(*manager(), state())
295 .WillOnce(Return(DataTypeManager::CONFIGURED)); 297 .WillOnce(Return(DataTypeManager::CONFIGURED));
296 EXPECT_CALL(*manager(), PurgeForMigration(_, CONFIGURE_REASON_MIGRATION)) 298 EXPECT_CALL(*manager(), PurgeForMigration(_, CONFIGURE_REASON_MIGRATION))
297 .Times(1); 299 .Times(1);
298 migrator()->MigrateTypes(to_migrate); 300 migrator()->MigrateTypes(to_migrate);
299 SetUnsyncedTypes(ModelTypeSet()); 301 SetUnsyncedTypes(ModelTypeSet());
300 SendConfigureDone(DataTypeManager::ABORTED, ModelTypeSet()); 302 SendConfigureDone(DataTypeManager::ABORTED, ModelTypeSet());
301 EXPECT_EQ(BackendMigrator::IDLE, migrator()->state()); 303 EXPECT_EQ(BackendMigrator::IDLE, migrator()->state());
302 } 304 }
303 305
304 }; // namespace browser_sync 306 }; // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/backend_migrator.cc ('k') | components/sync/driver/directory_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698