| 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 "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace extensions { | 10 namespace extensions { |
| 11 | 11 |
| 12 class WebrtcCastApiTest : public ExtensionApiTest { | 12 class CastStreamingApiTest : public ExtensionApiTest { |
| 13 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { | 13 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { |
| 14 ExtensionApiTest::SetUpCommandLine(command_line); | 14 ExtensionApiTest::SetUpCommandLine(command_line); |
| 15 command_line->AppendSwitchASCII( | 15 command_line->AppendSwitchASCII( |
| 16 switches::kWhitelistedExtensionID, | 16 switches::kWhitelistedExtensionID, |
| 17 "ddchlicdkolnonkihahngkmmmjnjlkkf"); | 17 "ddchlicdkolnonkihahngkmmmjnjlkkf"); |
| 18 } | 18 } |
| 19 | 19 |
| 20 virtual void SetUp() OVERRIDE { | 20 virtual void SetUp() OVERRIDE { |
| 21 // TODO(danakj): The GPU Video Decoder needs real GL bindings. | 21 // TODO(danakj): The GPU Video Decoder needs real GL bindings. |
| 22 // crbug.com/269087 | 22 // crbug.com/269087 |
| 23 UseRealGLBindings(); | 23 UseRealGLBindings(); |
| 24 | 24 |
| 25 // These test should be using OSMesa on CrOS, which would make this | 25 // These test should be using OSMesa on CrOS, which would make this |
| 26 // unneeded. | 26 // unneeded. |
| 27 // crbug.com/313128 | 27 // crbug.com/313128 |
| 28 #if !defined(OS_CHROMEOS) | 28 #if !defined(OS_CHROMEOS) |
| 29 UseRealGLContexts(); | 29 UseRealGLContexts(); |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 ExtensionApiTest::SetUp(); | 32 ExtensionApiTest::SetUp(); |
| 33 } | 33 } |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 // Test running the test extension for Cast Mirroring API. | 36 // Test running the test extension for Cast Mirroring API. |
| 37 IN_PROC_BROWSER_TEST_F(WebrtcCastApiTest, Basics) { | 37 IN_PROC_BROWSER_TEST_F(CastStreamingApiTest, Basics) { |
| 38 ASSERT_TRUE(RunExtensionSubtest("webrtc_cast", "basics.html")); | 38 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "basics.html")); |
| 39 } | 39 } |
| 40 | 40 |
| 41 } // namespace extensions | 41 } // namespace extensions |
| OLD | NEW |