| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 void AddExtensionToCommandLineWhitelist() { | 49 void AddExtensionToCommandLineWhitelist() { |
| 50 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( | 50 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( |
| 51 switches::kWhitelistedExtensionID, kExtensionId); | 51 switches::kWhitelistedExtensionID, kExtensionId); |
| 52 } | 52 } |
| 53 | 53 |
| 54 protected: | 54 protected: |
| 55 void SimulateMouseClickInCurrentTab() { | 55 void SimulateMouseClickInCurrentTab() { |
| 56 content::SimulateMouseClick( | 56 content::SimulateMouseClick( |
| 57 browser()->tab_strip_model()->GetActiveWebContents(), | 57 browser()->tab_strip_model()->GetActiveWebContents(), |
| 58 0, | 58 0, |
| 59 blink::WebMouseEvent::ButtonLeft); | 59 blink::WebMouseEvent::Button::Left); |
| 60 } | 60 } |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 class TabCaptureApiPixelTest : public TabCaptureApiTest { | 63 class TabCaptureApiPixelTest : public TabCaptureApiTest { |
| 64 public: | 64 public: |
| 65 void SetUp() override { | 65 void SetUp() override { |
| 66 if (!IsTooIntensiveForThisPlatform()) | 66 if (!IsTooIntensiveForThisPlatform()) |
| 67 EnablePixelOutput(); | 67 EnablePixelOutput(); |
| 68 TabCaptureApiTest::SetUp(); | 68 TabCaptureApiTest::SetUp(); |
| 69 } | 69 } |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 EXPECT_EQ(TabAlertState::TAB_CAPTURING, observer.last_alert_state()); | 463 EXPECT_EQ(TabAlertState::TAB_CAPTURING, observer.last_alert_state()); |
| 464 return; | 464 return; |
| 465 } | 465 } |
| 466 content::RunMessageLoop(); | 466 content::RunMessageLoop(); |
| 467 } | 467 } |
| 468 } | 468 } |
| 469 | 469 |
| 470 } // namespace | 470 } // namespace |
| 471 | 471 |
| 472 } // namespace extensions | 472 } // namespace extensions |
| OLD | NEW |