Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: chrome/browser/extensions/extension_resource_request_policy_apitest.cc

Issue 120313002: Use stub GL draw/clear calls for browser tests that do not need pixels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: stubgl: use_osmesa Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/logging.h" 6 #include "base/logging.h"
7 #include "chrome/browser/extensions/extension_apitest.h" 7 #include "chrome/browser/extensions/extension_apitest.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/tabs/tab_strip_model.h" 9 #include "chrome/browser/ui/tabs/tab_strip_model.h"
10 #include "chrome/test/base/test_switches.h" 10 #include "chrome/test/base/test_switches.h"
11 #include "chrome/test/base/ui_test_utils.h" 11 #include "chrome/test/base/ui_test_utils.h"
12 #include "content/public/browser/web_contents.h" 12 #include "content/public/browser/web_contents.h"
13 #include "content/public/test/browser_test_utils.h" 13 #include "content/public/test/browser_test_utils.h"
14 #include "extensions/common/switches.h" 14 #include "extensions/common/switches.h"
15 #include "net/dns/mock_host_resolver.h" 15 #include "net/dns/mock_host_resolver.h"
16 #include "url/gurl.h" 16 #include "url/gurl.h"
17 17
18 class ExtensionResourceRequestPolicyTest : public ExtensionApiTest { 18 class ExtensionResourceRequestPolicyTest : public ExtensionApiTest {
19 protected: 19 protected:
20 virtual void SetUp() OVERRIDE {
21 // TODO(danakj): The GPU Video Decoder needs real GL bindings.
22 // crbug.com/269087
23 UseRealGLBindings();
24
25 ExtensionApiTest::SetUp();
26 }
27
28 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 20 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
29 ExtensionApiTest::SetUpCommandLine(command_line); 21 ExtensionApiTest::SetUpCommandLine(command_line);
30 command_line->AppendSwitch( 22 command_line->AppendSwitch(
31 extensions::switches::kAllowLegacyExtensionManifests); 23 extensions::switches::kAllowLegacyExtensionManifests);
32 } 24 }
33 }; 25 };
34 26
35 // Note, this mostly tests the logic of chrome/renderer/extensions/ 27 // Note, this mostly tests the logic of chrome/renderer/extensions/
36 // extension_resource_request_policy.*, but we have it as a browser test so that 28 // extension_resource_request_policy.*, but we have it as a browser test so that
37 // can make sure it works end-to-end. 29 // can make sure it works end-to-end.
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 333
342 #if defined(OS_MACOSX) 334 #if defined(OS_MACOSX)
343 #define MAYBE_ExtensionAccessibleResources DISABLED_ExtensionAccessibleResources 335 #define MAYBE_ExtensionAccessibleResources DISABLED_ExtensionAccessibleResources
344 #else 336 #else
345 #define MAYBE_ExtensionAccessibleResources ExtensionAccessibleResources 337 #define MAYBE_ExtensionAccessibleResources ExtensionAccessibleResources
346 #endif 338 #endif
347 IN_PROC_BROWSER_TEST_F(ExtensionResourceRequestPolicyTest, 339 IN_PROC_BROWSER_TEST_F(ExtensionResourceRequestPolicyTest,
348 MAYBE_ExtensionAccessibleResources) { 340 MAYBE_ExtensionAccessibleResources) {
349 ASSERT_TRUE(RunExtensionSubtest("accessible_cer", "main.html")) << message_; 341 ASSERT_TRUE(RunExtensionSubtest("accessible_cer", "main.html")) << message_;
350 } 342 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/cast_streaming_apitest.cc ('k') | chrome/browser/prerender/prerender_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698