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

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

Issue 686563003: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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) 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 <vector> 5 #include <vector>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 13 matching lines...) Expand all
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 #include "ui/app_list/app_list_switches.h" 25 #include "ui/app_list/app_list_switches.h"
26 26
27 using sync_driver::DataTypeController; 27 using sync_driver::DataTypeController;
28 28
29 class ProfileSyncComponentsFactoryImplTest : public testing::Test { 29 class ProfileSyncComponentsFactoryImplTest : public testing::Test {
30 protected: 30 protected:
31 ProfileSyncComponentsFactoryImplTest() 31 ProfileSyncComponentsFactoryImplTest()
32 : thread_bundle_(content::TestBrowserThreadBundle::DEFAULT) {} 32 : thread_bundle_(content::TestBrowserThreadBundle::DEFAULT) {}
33 33
34 virtual void SetUp() { 34 void SetUp() override {
35 profile_.reset(new TestingProfile()); 35 profile_.reset(new TestingProfile());
36 base::FilePath program_path(FILE_PATH_LITERAL("chrome.exe")); 36 base::FilePath program_path(FILE_PATH_LITERAL("chrome.exe"));
37 command_line_.reset(new CommandLine(program_path)); 37 command_line_.reset(new CommandLine(program_path));
38 scope_set_.insert(GaiaConstants::kChromeSyncOAuth2Scope); 38 scope_set_.insert(GaiaConstants::kChromeSyncOAuth2Scope);
39 } 39 }
40 40
41 // Returns the collection of default datatypes. 41 // Returns the collection of default datatypes.
42 static std::vector<syncer::ModelType> DefaultDatatypes() { 42 static std::vector<syncer::ModelType> DefaultDatatypes() {
43 std::vector<syncer::ModelType> datatypes; 43 std::vector<syncer::ModelType> datatypes;
44 datatypes.push_back(syncer::APPS); 44 datatypes.push_back(syncer::APPS);
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 } 154 }
155 155
156 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisableOne) { 156 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisableOne) {
157 TestSwitchDisablesType(syncer::ModelTypeSet(syncer::AUTOFILL)); 157 TestSwitchDisablesType(syncer::ModelTypeSet(syncer::AUTOFILL));
158 } 158 }
159 159
160 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisableMultiple) { 160 TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDisableMultiple) {
161 TestSwitchDisablesType( 161 TestSwitchDisablesType(
162 syncer::ModelTypeSet(syncer::AUTOFILL_PROFILE, syncer::BOOKMARKS)); 162 syncer::ModelTypeSet(syncer::AUTOFILL_PROFILE, syncer::BOOKMARKS));
163 } 163 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698