OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |