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

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

Issue 2413313004: [Sync] Move the last things out of core/. (Closed)
Patch Set: Address 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 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 <memory> 7 #include <memory>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "components/sync/base/model_type.h" 12 #include "components/sync/base/model_type.h"
13 #include "components/sync/core/activation_context.h"
14 #include "components/sync/core/configure_reason.h"
15 #include "components/sync/driver/data_type_encryption_handler.h" 13 #include "components/sync/driver/data_type_encryption_handler.h"
16 #include "components/sync/driver/data_type_manager_observer.h" 14 #include "components/sync/driver/data_type_manager_observer.h"
17 #include "components/sync/driver/data_type_status_table.h" 15 #include "components/sync/driver/data_type_status_table.h"
18 #include "components/sync/driver/fake_data_type_controller.h" 16 #include "components/sync/driver/fake_data_type_controller.h"
17 #include "components/sync/engine/activation_context.h"
18 #include "components/sync/engine/configure_reason.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 namespace syncer { 21 namespace syncer {
22 22
23 namespace { 23 namespace {
24 24
25 // Helper for unioning with control types. 25 // Helper for unioning with control types.
26 ModelTypeSet AddControlTypesTo(ModelTypeSet types) { 26 ModelTypeSet AddControlTypesTo(ModelTypeSet types) {
27 ModelTypeSet result = ControlTypes(); 27 ModelTypeSet result = ControlTypes();
28 result.PutAll(types); 28 result.PutAll(types);
(...skipping 1641 matching lines...) Expand 10 before | Expand all | Expand 10 after
1670 GetController(PASSWORDS)->state()); 1670 GetController(PASSWORDS)->state());
1671 EXPECT_EQ(0, GetController(BOOKMARKS)->register_with_backend_call_count()); 1671 EXPECT_EQ(0, GetController(BOOKMARKS)->register_with_backend_call_count());
1672 EXPECT_EQ(0, GetController(PASSWORDS)->register_with_backend_call_count()); 1672 EXPECT_EQ(0, GetController(PASSWORDS)->register_with_backend_call_count());
1673 1673
1674 dtm_->OnAllDataTypesReadyForConfigure(); 1674 dtm_->OnAllDataTypesReadyForConfigure();
1675 EXPECT_EQ(0, GetController(BOOKMARKS)->register_with_backend_call_count()); 1675 EXPECT_EQ(0, GetController(BOOKMARKS)->register_with_backend_call_count());
1676 EXPECT_EQ(1, GetController(PASSWORDS)->register_with_backend_call_count()); 1676 EXPECT_EQ(1, GetController(PASSWORDS)->register_with_backend_call_count());
1677 } 1677 }
1678 1678
1679 } // namespace syncer 1679 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/data_type_manager_impl.cc ('k') | components/sync/driver/generic_change_processor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698