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

Side by Side Diff: chrome/browser/extensions/api/tab_capture/tab_capture_apitest.cc

Issue 2690113010: Abstract OSMesa from the Layout tests (Closed)
Patch Set: Renamed "Renderer" to "GL" Created 3 years, 10 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
« no previous file with comments | « no previous file | content/browser/gpu/gpu_data_manager_impl_private.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/location.h" 6 #include "base/location.h"
7 #include "base/single_thread_task_runner.h" 7 #include "base/single_thread_task_runner.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/test/test_timeouts.h" 9 #include "base/test/test_timeouts.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 TabCaptureApiTest::SetUp(); 68 TabCaptureApiTest::SetUp();
69 } 69 }
70 70
71 protected: 71 protected:
72 bool IsTooIntensiveForThisPlatform() const { 72 bool IsTooIntensiveForThisPlatform() const {
73 #if defined(OS_WIN) 73 #if defined(OS_WIN)
74 if (base::win::GetVersion() < base::win::VERSION_VISTA) 74 if (base::win::GetVersion() < base::win::VERSION_VISTA)
75 return true; 75 return true;
76 #endif 76 #endif
77 77
78 // The tests are too slow to succeed with OSMesa on the bots. 78 // The tests are too slow to succeed with software GL on the bots.
79 if (UsingOSMesa()) 79 if (UsingSoftwareGL())
80 return true; 80 return true;
81 81
82 #if defined(NDEBUG) 82 #if defined(NDEBUG)
83 return false; 83 return false;
84 #else 84 #else
85 // TODO(miu): Look into enabling these tests for the Debug build bots once 85 // TODO(miu): Look into enabling these tests for the Debug build bots once
86 // they prove to be stable again on the Release bots. 86 // they prove to be stable again on the Release bots.
87 // http://crbug.com/396413 87 // http://crbug.com/396413
88 return !base::CommandLine::ForCurrentProcess()->HasSwitch( 88 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
89 "run-tab-capture-api-pixel-tests"); 89 "run-tab-capture-api-pixel-tests");
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 EXPECT_EQ(TabAlertState::TAB_CAPTURING, observer.last_alert_state()); 464 EXPECT_EQ(TabAlertState::TAB_CAPTURING, observer.last_alert_state());
465 return; 465 return;
466 } 466 }
467 content::RunMessageLoop(); 467 content::RunMessageLoop();
468 } 468 }
469 } 469 }
470 470
471 } // namespace 471 } // namespace
472 472
473 } // namespace extensions 473 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_data_manager_impl_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698