| 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 "base/command_line.h" |
| 6 #include "chrome/browser/extensions/extension_apitest.h" | 6 #include "chrome/browser/extensions/extension_apitest.h" |
| 7 #include "chrome/common/chrome_switches.h" | 7 #include "chrome/common/chrome_switches.h" |
| 8 #include "content/public/common/content_switches.h" | 8 #include "content/public/common/content_switches.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| 11 namespace extensions { | 11 namespace extensions { |
| 12 | 12 |
| 13 class CastStreamingApiTest : public ExtensionApiTest { | 13 class CastStreamingApiTest : public ExtensionApiTest { |
| 14 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { | 14 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { |
| 15 ExtensionApiTest::SetUpCommandLine(command_line); | 15 ExtensionApiTest::SetUpCommandLine(command_line); |
| 16 command_line->AppendSwitchASCII( | 16 command_line->AppendSwitchASCII( |
| 17 switches::kWhitelistedExtensionID, | 17 switches::kWhitelistedExtensionID, |
| 18 "ddchlicdkolnonkihahngkmmmjnjlkkf"); | 18 "ddchlicdkolnonkihahngkmmmjnjlkkf"); |
| 19 } | 19 } |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 // Test running the test extension for Cast Mirroring API. | 22 // Test running the test extension for Cast Mirroring API. |
| 23 IN_PROC_BROWSER_TEST_F(CastStreamingApiTest, Basics) { | 23 IN_PROC_BROWSER_TEST_F(CastStreamingApiTest, Basics) { |
| 24 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "basics.html")); | 24 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "basics.html")); |
| 25 } | 25 } |
| 26 | 26 |
| 27 IN_PROC_BROWSER_TEST_F(CastStreamingApiTest, Stats) { |
| 28 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "stats.html")); |
| 29 } |
| 30 |
| 27 IN_PROC_BROWSER_TEST_F(CastStreamingApiTest, BadLogging) { | 31 IN_PROC_BROWSER_TEST_F(CastStreamingApiTest, BadLogging) { |
| 28 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "bad_logging.html")); | 32 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "bad_logging.html")); |
| 29 } | 33 } |
| 30 | 34 |
| 31 } // namespace extensions | 35 } // namespace extensions |
| OLD | NEW |