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

Side by Side Diff: chrome/browser/plugins/plugin_power_saver_browsertest.cc

Issue 1965073002: Rename gfx::Display to display::Display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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
OLDNEW
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> 5 #include <stdint.h>
6 #include <string> 6 #include <string>
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 15 matching lines...) Expand all
26 #include "content/public/common/content_switches.h" 26 #include "content/public/common/content_switches.h"
27 #include "content/public/test/browser_test_utils.h" 27 #include "content/public/test/browser_test_utils.h"
28 #include "content/public/test/ppapi_test_utils.h" 28 #include "content/public/test/ppapi_test_utils.h"
29 #include "net/test/embedded_test_server/embedded_test_server.h" 29 #include "net/test/embedded_test_server/embedded_test_server.h"
30 #include "net/test/embedded_test_server/http_request.h" 30 #include "net/test/embedded_test_server/http_request.h"
31 #include "net/test/embedded_test_server/http_response.h" 31 #include "net/test/embedded_test_server/http_response.h"
32 #include "ppapi/shared_impl/ppapi_switches.h" 32 #include "ppapi/shared_impl/ppapi_switches.h"
33 #include "third_party/WebKit/public/web/WebInputEvent.h" 33 #include "third_party/WebKit/public/web/WebInputEvent.h"
34 #include "third_party/skia/include/core/SkBitmap.h" 34 #include "third_party/skia/include/core/SkBitmap.h"
35 #include "ui/base/window_open_disposition.h" 35 #include "ui/base/window_open_disposition.h"
36 #include "ui/display/display_switches.h"
36 #include "ui/display/screen.h" 37 #include "ui/display/screen.h"
37 #include "ui/gfx/codec/png_codec.h" 38 #include "ui/gfx/codec/png_codec.h"
38 #include "ui/gfx/geometry/point.h" 39 #include "ui/gfx/geometry/point.h"
39 #include "ui/gfx/switches.h"
40 40
41 namespace { 41 namespace {
42 42
43 // Use fixed browser dimensions for pixel tests. 43 // Use fixed browser dimensions for pixel tests.
44 const int kBrowserWidth = 600; 44 const int kBrowserWidth = 600;
45 const int kBrowserHeight = 700; 45 const int kBrowserHeight = 700;
46 46
47 // Compare only a portion of the snapshots, as different platforms will 47 // Compare only a portion of the snapshots, as different platforms will
48 // capture different sized snapshots (due to differences in browser chrome). 48 // capture different sized snapshots (due to differences in browser chrome).
49 const int kComparisonWidth = 500; 49 const int kComparisonWidth = 500;
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 645
646 IN_PROC_BROWSER_TEST_F(PluginPowerSaverBrowserTest, ZoomIndependent) { 646 IN_PROC_BROWSER_TEST_F(PluginPowerSaverBrowserTest, ZoomIndependent) {
647 ui_zoom::ZoomController::FromWebContents(GetActiveWebContents()) 647 ui_zoom::ZoomController::FromWebContents(GetActiveWebContents())
648 ->SetZoomLevel(4.0); 648 ->SetZoomLevel(4.0);
649 LoadHTML( 649 LoadHTML(
650 "<object id='plugin' data='http://otherorigin.com/fake.swf' " 650 "<object id='plugin' data='http://otherorigin.com/fake.swf' "
651 " type='application/x-ppapi-tests' width='400' height='200'>" 651 " type='application/x-ppapi-tests' width='400' height='200'>"
652 "</object>"); 652 "</object>");
653 VerifyPluginIsThrottled(GetActiveWebContents(), "plugin"); 653 VerifyPluginIsThrottled(GetActiveWebContents(), "plugin");
654 } 654 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | chrome/browser/ui/app_list/app_list_service_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698