| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stdint.h> |
| 6 |
| 5 #include <string> | 7 #include <string> |
| 6 | 8 |
| 7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 8 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| 9 #include "base/strings/string_piece.h" | 11 #include "base/strings/string_piece.h" |
| 10 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 #include "build/build_config.h" |
| 11 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
| 12 #include "chrome/browser/ui/browser_window.h" | 15 #include "chrome/browser/ui/browser_window.h" |
| 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 16 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 14 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
| 15 #include "chrome/test/base/in_process_browser_test.h" | 18 #include "chrome/test/base/in_process_browser_test.h" |
| 16 #include "chrome/test/base/test_switches.h" | 19 #include "chrome/test/base/test_switches.h" |
| 17 #include "chrome/test/base/ui_test_utils.h" | 20 #include "chrome/test/base/ui_test_utils.h" |
| 18 #include "components/ui/zoom/zoom_controller.h" | 21 #include "components/ui/zoom/zoom_controller.h" |
| 19 #include "content/public/browser/readback_types.h" | 22 #include "content/public/browser/readback_types.h" |
| 20 #include "content/public/browser/render_frame_host.h" | 23 #include "content/public/browser/render_frame_host.h" |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 | 637 |
| 635 IN_PROC_BROWSER_TEST_F(PluginPowerSaverBrowserTest, ZoomIndependent) { | 638 IN_PROC_BROWSER_TEST_F(PluginPowerSaverBrowserTest, ZoomIndependent) { |
| 636 ui_zoom::ZoomController::FromWebContents(GetActiveWebContents()) | 639 ui_zoom::ZoomController::FromWebContents(GetActiveWebContents()) |
| 637 ->SetZoomLevel(4.0); | 640 ->SetZoomLevel(4.0); |
| 638 LoadHTML( | 641 LoadHTML( |
| 639 "<object id='plugin' data='http://otherorigin.com/fake.swf' " | 642 "<object id='plugin' data='http://otherorigin.com/fake.swf' " |
| 640 " type='application/x-ppapi-tests' width='400' height='200'>" | 643 " type='application/x-ppapi-tests' width='400' height='200'>" |
| 641 "</object>"); | 644 "</object>"); |
| 642 VerifyPluginIsThrottled(GetActiveWebContents(), "plugin"); | 645 VerifyPluginIsThrottled(GetActiveWebContents(), "plugin"); |
| 643 } | 646 } |
| OLD | NEW |