Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / extensions / cast_streaming_apitest.cc
blob0d247783497c2a068e07cba05e4dc5f9293490da
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
3 // found in the LICENSE file.
5 #include "base/command_line.h"
6 #include "chrome/browser/extensions/extension_apitest.h"
7 #include "chrome/common/chrome_switches.h"
8 #include "content/public/common/content_switches.h"
9 #include "testing/gtest/include/gtest/gtest.h"
11 namespace extensions {
13 class CastStreamingApiTest : public ExtensionApiTest {
14 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
15 ExtensionApiTest::SetUpCommandLine(command_line);
16 command_line->AppendSwitchASCII(
17 switches::kWhitelistedExtensionID,
18 "ddchlicdkolnonkihahngkmmmjnjlkkf");
19 command_line->AppendSwitch(switches::kDisableP2PSocketSTUNFilter);
22 virtual void SetUp() OVERRIDE {
23 // TODO(danakj): The GPU Video Decoder needs real GL bindings.
24 // crbug.com/269087
25 UseRealGLBindings();
27 // These test should be using OSMesa on CrOS, which would make this
28 // unneeded.
29 // crbug.com/313128
30 #if !defined(OS_CHROMEOS)
31 UseRealGLContexts();
32 #endif
34 ExtensionApiTest::SetUp();
38 // Test running the test extension for Cast Mirroring API.
39 IN_PROC_BROWSER_TEST_F(CastStreamingApiTest, Basics) {
40 ASSERT_TRUE(RunExtensionSubtest("cast_streaming", "basics.html"));
43 } // namespace extensions