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

Side by Side Diff: chrome/browser/extensions/api/screenlock_private/screenlock_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 5 years, 12 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/strings/string16.h" 5 #include "base/strings/string16.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "chrome/browser/browser_process.h" 7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/extensions/api/screenlock_private/screenlock_private_ap i.h" 8 #include "chrome/browser/extensions/api/screenlock_private/screenlock_private_ap i.h"
9 #include "chrome/browser/extensions/extension_apitest.h" 9 #include "chrome/browser/extensions/extension_apitest.h"
10 #include "chrome/browser/profiles/profile_info_cache.h" 10 #include "chrome/browser/profiles/profile_info_cache.h"
(...skipping 18 matching lines...) Expand all
29 } // namespace 29 } // namespace
30 30
31 class ScreenlockPrivateApiTest : public ExtensionApiTest, 31 class ScreenlockPrivateApiTest : public ExtensionApiTest,
32 public content::NotificationObserver { 32 public content::NotificationObserver {
33 public: 33 public:
34 ScreenlockPrivateApiTest() {} 34 ScreenlockPrivateApiTest() {}
35 35
36 ~ScreenlockPrivateApiTest() override {} 36 ~ScreenlockPrivateApiTest() override {}
37 37
38 // ExtensionApiTest 38 // ExtensionApiTest
39 void SetUpCommandLine(CommandLine* command_line) override { 39 void SetUpCommandLine(base::CommandLine* command_line) override {
40 ExtensionApiTest::SetUpCommandLine(command_line); 40 ExtensionApiTest::SetUpCommandLine(command_line);
41 command_line->AppendSwitchASCII( 41 command_line->AppendSwitchASCII(
42 extensions::switches::kWhitelistedExtensionID, kTestExtensionId); 42 extensions::switches::kWhitelistedExtensionID, kTestExtensionId);
43 43
44 #if !defined(OS_CHROMEOS) 44 #if !defined(OS_CHROMEOS)
45 // New profile management needs to be on for non-ChromeOS lock. 45 // New profile management needs to be on for non-ChromeOS lock.
46 ::switches::EnableNewProfileManagementForTesting(command_line); 46 ::switches::EnableNewProfileManagementForTesting(command_line);
47 #endif 47 #endif
48 } 48 }
49 49
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 IN_PROC_BROWSER_TEST_F(ScreenlockPrivateApiTest, LockUnlock) { 96 IN_PROC_BROWSER_TEST_F(ScreenlockPrivateApiTest, LockUnlock) {
97 RunTest("screenlock_private/lock_unlock"); 97 RunTest("screenlock_private/lock_unlock");
98 } 98 }
99 99
100 IN_PROC_BROWSER_TEST_F(ScreenlockPrivateApiTest, AuthType) { 100 IN_PROC_BROWSER_TEST_F(ScreenlockPrivateApiTest, AuthType) {
101 RunTest("screenlock_private/auth_type"); 101 RunTest("screenlock_private/auth_type");
102 } 102 }
103 103
104 } // namespace extensions 104 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698