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

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

Issue 10534080: sync: move internal_api components used by chrome/browser into internal_api/public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: init Created 8 years, 6 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.h" 7 #include "base/message_loop.h"
8 #include "base/tracked_objects.h" 8 #include "base/tracked_objects.h"
9 #include "chrome/browser/sync/glue/data_type_manager_mock.h" 9 #include "chrome/browser/sync/glue/data_type_manager_mock.h"
10 #include "chrome/browser/sync/profile_sync_service_mock.h" 10 #include "chrome/browser/sync/profile_sync_service_mock.h"
11 #include "chrome/common/chrome_notification_types.h" 11 #include "chrome/common/chrome_notification_types.h"
12 #include "sync/internal_api/public/syncable/model_type_test_util.h" 12 #include "sync/internal_api/public/syncable/model_type_test_util.h"
13 #include "sync/internal_api/test_user_share.h" 13 #include "sync/internal_api/public/test_user_share.h"
14 #include "sync/internal_api/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 "testing/gmock/include/gmock/gmock.h" 16 #include "testing/gmock/include/gmock/gmock.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 using ::testing::_; 19 using ::testing::_;
20 using ::testing::Eq; 20 using ::testing::Eq;
21 using ::testing::Mock; 21 using ::testing::Mock;
22 using ::testing::NiceMock; 22 using ::testing::NiceMock;
23 using ::testing::Return; 23 using ::testing::Return;
24 24
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 .WillOnce(Return(DataTypeManager::CONFIGURED)); 314 .WillOnce(Return(DataTypeManager::CONFIGURED));
315 EXPECT_CALL(*manager(), Configure(_, sync_api::CONFIGURE_REASON_MIGRATION)) 315 EXPECT_CALL(*manager(), Configure(_, sync_api::CONFIGURE_REASON_MIGRATION))
316 .Times(1); 316 .Times(1);
317 migrator()->MigrateTypes(to_migrate); 317 migrator()->MigrateTypes(to_migrate);
318 SetUnsyncedTypes(syncable::ModelTypeSet()); 318 SetUnsyncedTypes(syncable::ModelTypeSet());
319 SendConfigureDone(DataTypeManager::ABORTED, syncable::ModelTypeSet()); 319 SendConfigureDone(DataTypeManager::ABORTED, syncable::ModelTypeSet());
320 EXPECT_EQ(BackendMigrator::IDLE, migrator()->state()); 320 EXPECT_EQ(BackendMigrator::IDLE, migrator()->state());
321 } 321 }
322 322
323 }; // namespace browser_sync 323 }; // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698