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

Side by Side Diff: components/sync_driver/data_type_manager_impl_unittest.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/data_type_manager_impl.h" 5 #include "components/sync_driver/data_type_manager_impl.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "components/sync/base/model_type.h"
10 #include "components/sync/core/activation_context.h"
11 #include "components/sync/core/configure_reason.h"
9 #include "components/sync_driver/backend_data_type_configurer.h" 12 #include "components/sync_driver/backend_data_type_configurer.h"
10 #include "components/sync_driver/data_type_encryption_handler.h" 13 #include "components/sync_driver/data_type_encryption_handler.h"
11 #include "components/sync_driver/data_type_manager_observer.h" 14 #include "components/sync_driver/data_type_manager_observer.h"
12 #include "components/sync_driver/data_type_status_table.h" 15 #include "components/sync_driver/data_type_status_table.h"
13 #include "components/sync_driver/fake_data_type_controller.h" 16 #include "components/sync_driver/fake_data_type_controller.h"
14 #include "sync/internal_api/public/activation_context.h"
15 #include "sync/internal_api/public/base/model_type.h"
16 #include "sync/internal_api/public/configure_reason.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 namespace sync_driver { 19 namespace sync_driver {
20 20
21 using syncer::SyncError; 21 using syncer::SyncError;
22 using syncer::ModelType; 22 using syncer::ModelType;
23 using syncer::ModelTypeSet; 23 using syncer::ModelTypeSet;
24 using syncer::ModelTypeToString; 24 using syncer::ModelTypeToString;
25 using syncer::BOOKMARKS; 25 using syncer::BOOKMARKS;
26 using syncer::APPS; 26 using syncer::APPS;
(...skipping 1678 matching lines...) Expand 10 before | Expand all | Expand 10 after
1705 FinishDownload(*dtm_, ModelTypeSet(), ModelTypeSet()); 1705 FinishDownload(*dtm_, ModelTypeSet(), ModelTypeSet());
1706 FinishDownload(*dtm_, ModelTypeSet(BOOKMARKS), ModelTypeSet()); 1706 FinishDownload(*dtm_, ModelTypeSet(BOOKMARKS), ModelTypeSet());
1707 EXPECT_EQ(DataTypeManager::CONFIGURING, dtm_->state()); 1707 EXPECT_EQ(DataTypeManager::CONFIGURING, dtm_->state());
1708 1708
1709 GetController(BOOKMARKS)->FinishStart(DataTypeController::OK); 1709 GetController(BOOKMARKS)->FinishStart(DataTypeController::OK);
1710 EXPECT_EQ(DataTypeManager::CONFIGURED, dtm_->state()); 1710 EXPECT_EQ(DataTypeManager::CONFIGURED, dtm_->state());
1711 EXPECT_EQ(1U, configurer_.activated_types().Size()); 1711 EXPECT_EQ(1U, configurer_.activated_types().Size());
1712 } 1712 }
1713 1713
1714 } // namespace sync_driver 1714 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync_driver/data_type_manager_impl.cc ('k') | components/sync_driver/data_type_manager_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698