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

Side by Side Diff: chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc

Issue 819133004: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 mutable bool initialized_state_violation_; 104 mutable bool initialized_state_violation_;
105 105
106 DISALLOW_COPY_AND_ASSIGN(FakeProfileSyncService); 106 DISALLOW_COPY_AND_ASSIGN(FakeProfileSyncService);
107 }; 107 };
108 108
109 class PreferencesPrivateApiTest : public ExtensionApiTest { 109 class PreferencesPrivateApiTest : public ExtensionApiTest {
110 public: 110 public:
111 PreferencesPrivateApiTest() : browser_(NULL), service_(NULL) {} 111 PreferencesPrivateApiTest() : browser_(NULL), service_(NULL) {}
112 ~PreferencesPrivateApiTest() override {} 112 ~PreferencesPrivateApiTest() override {}
113 113
114 void SetUpCommandLine(CommandLine* command_line) override { 114 void SetUpCommandLine(base::CommandLine* command_line) override {
115 #if defined(OS_CHROMEOS) 115 #if defined(OS_CHROMEOS)
116 command_line->AppendSwitch( 116 command_line->AppendSwitch(
117 chromeos::switches::kIgnoreUserProfileMappingForTests); 117 chromeos::switches::kIgnoreUserProfileMappingForTests);
118 #endif 118 #endif
119 } 119 }
120 120
121 void SetUpOnMainThread() override { 121 void SetUpOnMainThread() override {
122 ExtensionApiTest::SetUpOnMainThread(); 122 ExtensionApiTest::SetUpOnMainThread();
123 123
124 base::FilePath path; 124 base::FilePath path;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
189 // Verifies that we wait for the sync service to be ready before checking 189 // Verifies that we wait for the sync service to be ready before checking
190 // encryption status. 190 // encryption status.
191 IN_PROC_BROWSER_TEST_F(PreferencesPrivateApiTest, 191 IN_PROC_BROWSER_TEST_F(PreferencesPrivateApiTest,
192 GetSyncCategoriesWithoutPassphraseAsynchronous) { 192 GetSyncCategoriesWithoutPassphraseAsynchronous) {
193 service_->set_sync_initialized(false); 193 service_->set_sync_initialized(false);
194 TestGetSyncCategoriesWithoutPassphraseFunction(); 194 TestGetSyncCategoriesWithoutPassphraseFunction();
195 } 195 }
196 196
197 } // namespace 197 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698