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/command_line.h" |
5 #include "chrome/browser/extensions/extension_apitest.h" | 6 #include "chrome/browser/extensions/extension_apitest.h" |
| 7 #include "chrome/common/chrome_switches.h" |
6 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
7 | 9 |
8 namespace extensions { | 10 namespace extensions { |
9 | 11 |
10 class WebrtcCastApiTest : public ExtensionApiTest { | 12 class WebrtcCastApiTest : public ExtensionApiTest { |
| 13 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { |
| 14 ExtensionApiTest::SetUpCommandLine(command_line); |
| 15 command_line->AppendSwitchASCII( |
| 16 switches::kWhitelistedExtensionID, |
| 17 "ddchlicdkolnonkihahngkmmmjnjlkkf"); |
| 18 } |
11 }; | 19 }; |
12 | 20 |
13 // Test running the test extension for Cast Mirroring API. | 21 // Test running the test extension for Cast Mirroring API. |
14 IN_PROC_BROWSER_TEST_F(WebrtcCastApiTest, Basics) { | 22 IN_PROC_BROWSER_TEST_F(WebrtcCastApiTest, Basics) { |
15 ASSERT_TRUE(RunExtensionSubtest("webrtc_cast", "basics.html")); | 23 ASSERT_TRUE(RunExtensionSubtest("webrtc_cast", "basics.html")); |
16 } | 24 } |
17 | 25 |
18 } // namespace extensions | 26 } // namespace extensions |
OLD | NEW |