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

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

Issue 7616019: Reorganize chrome/test, part #9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/sync/glue/data_type_manager_mock.h" 7 #include "chrome/browser/sync/glue/data_type_manager_mock.h"
8 #include "chrome/browser/sync/profile_sync_service_mock.h" 8 #include "chrome/browser/sync/profile_sync_service_mock.h"
9 #include "chrome/browser/sync/sessions/session_state.h" 9 #include "chrome/browser/sync/sessions/session_state.h"
10 #include "chrome/common/chrome_notification_types.h" 10 #include "chrome/common/chrome_notification_types.h"
11 #include "chrome/test/testing_browser_process_test.h" 11 #include "chrome/test/base/testing_browser_process_test.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 using ::testing::_; 15 using ::testing::_;
16 using ::testing::Eq; 16 using ::testing::Eq;
17 using ::testing::Mock; 17 using ::testing::Mock;
18 using ::testing::NiceMock; 18 using ::testing::NiceMock;
19 using ::testing::Return; 19 using ::testing::Return;
20 using ::testing::SetArgumentPointee; 20 using ::testing::SetArgumentPointee;
21 21
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 EXPECT_CALL(*manager(), state()) 310 EXPECT_CALL(*manager(), state())
311 .WillOnce(Return(DataTypeManager::CONFIGURED)); 311 .WillOnce(Return(DataTypeManager::CONFIGURED));
312 EXPECT_CALL(*manager(), Configure(_, sync_api::CONFIGURE_REASON_MIGRATION)) 312 EXPECT_CALL(*manager(), Configure(_, sync_api::CONFIGURE_REASON_MIGRATION))
313 .Times(1); 313 .Times(1);
314 migrator.MigrateTypes(to_migrate); 314 migrator.MigrateTypes(to_migrate);
315 SendConfigureDone(DataTypeManager::ABORTED, syncable::ModelTypeSet()); 315 SendConfigureDone(DataTypeManager::ABORTED, syncable::ModelTypeSet());
316 EXPECT_EQ(BackendMigrator::IDLE, migrator.state()); 316 EXPECT_EQ(BackendMigrator::IDLE, migrator.state());
317 } 317 }
318 318
319 }; // namespace browser_sync 319 }; // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698