OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <stdio.h> | 5 #include <stdio.h> |
6 | 6 |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "chrome/browser/extensions/extension_apitest.h" | 8 #include "chrome/browser/extensions/extension_apitest.h" |
9 #include "chrome/common/chrome_switches.h" | 9 #include "chrome/common/chrome_switches.h" |
10 #include "chrome/test/base/ui_test_utils.h" | 10 #include "chrome/test/base/ui_test_utils.h" |
11 | 11 |
12 namespace chromeos { | 12 namespace chromeos { |
13 | 13 |
14 class ExtensionNetworkingPrivateApiTest : public ExtensionApiTest { | 14 class ExtensionNetworkingPrivateApiTest : public ExtensionApiTest { |
15 public: | 15 public: |
16 // Whitelist the extension ID of the test extension. | 16 // Whitelist the extension ID of the test extension. |
17 virtual void SetUpCommandLine(CommandLine* command_line) { | 17 virtual void SetUpCommandLine(CommandLine* command_line) { |
18 ExtensionApiTest::SetUpCommandLine(command_line); | 18 ExtensionApiTest::SetUpCommandLine(command_line); |
19 command_line->AppendSwitchASCII( | 19 command_line->AppendSwitchASCII( |
20 switches::kWhitelistedExtensionID, "epcifkihnkjgphfkloaaleeakhpmgdmn"); | 20 switches::kWhitelistedExtensionID, "epcifkihnkjgphfkloaaleeakhpmgdmn"); |
21 } | 21 } |
22 }; | 22 }; |
23 | 23 |
24 IN_PROC_BROWSER_TEST_F(ExtensionNetworkingPrivateApiTest, BasicFunctions) { | 24 IN_PROC_BROWSER_TEST_F(ExtensionNetworkingPrivateApiTest, BasicFunctions) { |
25 ASSERT_TRUE(RunComponentExtensionTest("networking")) << message_; | 25 ASSERT_TRUE(RunComponentExtensionTest("networking")) << message_; |
26 } | 26 } |
27 | 27 |
28 } // namespace chromeos | 28 } // namespace chromeos |
OLD | NEW |