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

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

Issue 2662453008: [Sync] Fix sync lint errors/includes, update presubmit. (Closed)
Patch Set: Rebase Created 3 years, 10 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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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/profile_sync_service_factory.h" 5 #include "chrome/browser/sync/profile_sync_service_factory.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory>
10 #include <vector> 9 #include <vector>
11 10
12 #include "base/command_line.h" 11 #include "base/command_line.h"
13 #include "build/build_config.h" 12 #include "build/build_config.h"
14 #include "chrome/common/features.h" 13 #include "chrome/common/features.h"
15 #include "chrome/test/base/testing_profile.h" 14 #include "chrome/test/base/testing_profile.h"
16 #include "components/browser_sync/browser_sync_switches.h" 15 #include "components/browser_sync/browser_sync_switches.h"
17 #include "components/browser_sync/profile_sync_service.h" 16 #include "components/browser_sync/profile_sync_service.h"
18 #include "components/sync/base/model_type.h" 17 #include "components/sync/base/model_type.h"
19 #include "components/sync/driver/data_type_controller.h" 18 #include "components/sync/driver/data_type_controller.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 syncer::ModelTypeSet disabled_types(syncer::AUTOFILL_PROFILE, 143 syncer::ModelTypeSet disabled_types(syncer::AUTOFILL_PROFILE,
145 syncer::BOOKMARKS); 144 syncer::BOOKMARKS);
146 SetDisabledTypes(disabled_types); 145 SetDisabledTypes(disabled_types);
147 ProfileSyncService* pss = ProfileSyncServiceFactory::GetForProfile(profile()); 146 ProfileSyncService* pss = ProfileSyncServiceFactory::GetForProfile(profile());
148 DataTypeController::StateMap controller_states; 147 DataTypeController::StateMap controller_states;
149 pss->GetDataTypeControllerStates(&controller_states); 148 pss->GetDataTypeControllerStates(&controller_states);
150 EXPECT_EQ(DefaultDatatypesCount() - disabled_types.Size(), 149 EXPECT_EQ(DefaultDatatypesCount() - disabled_types.Size(),
151 controller_states.size()); 150 controller_states.size());
152 CheckDefaultDatatypesInMapExcept(&controller_states, disabled_types); 151 CheckDefaultDatatypesInMapExcept(&controller_states, disabled_types);
153 } 152 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/synced_tab_delegate_android.h ('k') | chrome/browser/sync/test/integration/migration_waiter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698