| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |