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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_browsertest.cc

Issue 679243002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/message_loop/message_loop_proxy.h" 6 #include "base/message_loop/message_loop_proxy.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "content/browser/gpu/compositor_util.h" 9 #include "content/browser/gpu/compositor_util.h"
10 #include "content/browser/gpu/gpu_data_manager_impl.h" 10 #include "content/browser/gpu/gpu_data_manager_impl.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 SOFTWARE_COMPOSITING, 200 SOFTWARE_COMPOSITING,
201 }; 201 };
202 202
203 class CompositingRenderWidgetHostViewBrowserTest 203 class CompositingRenderWidgetHostViewBrowserTest
204 : public RenderWidgetHostViewBrowserTest, 204 : public RenderWidgetHostViewBrowserTest,
205 public testing::WithParamInterface<CompositingMode> { 205 public testing::WithParamInterface<CompositingMode> {
206 public: 206 public:
207 explicit CompositingRenderWidgetHostViewBrowserTest() 207 explicit CompositingRenderWidgetHostViewBrowserTest()
208 : compositing_mode_(GetParam()) {} 208 : compositing_mode_(GetParam()) {}
209 209
210 virtual void SetUp() override { 210 void SetUp() override {
211 if (compositing_mode_ == SOFTWARE_COMPOSITING) 211 if (compositing_mode_ == SOFTWARE_COMPOSITING)
212 UseSoftwareCompositing(); 212 UseSoftwareCompositing();
213 RenderWidgetHostViewBrowserTest::SetUp(); 213 RenderWidgetHostViewBrowserTest::SetUp();
214 } 214 }
215 215
216 virtual GURL TestUrl() { 216 virtual GURL TestUrl() {
217 return net::FilePathToFileURL( 217 return net::FilePathToFileURL(
218 test_dir().AppendASCII("rwhv_compositing_animation.html")); 218 test_dir().AppendASCII("rwhv_compositing_animation.html"));
219 } 219 }
220 220
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 } 401 }
402 402
403 class CompositingRenderWidgetHostViewBrowserTestTabCapture 403 class CompositingRenderWidgetHostViewBrowserTestTabCapture
404 : public CompositingRenderWidgetHostViewBrowserTest { 404 : public CompositingRenderWidgetHostViewBrowserTest {
405 public: 405 public:
406 CompositingRenderWidgetHostViewBrowserTestTabCapture() 406 CompositingRenderWidgetHostViewBrowserTestTabCapture()
407 : expected_copy_from_compositing_surface_result_(false), 407 : expected_copy_from_compositing_surface_result_(false),
408 allowable_error_(0), 408 allowable_error_(0),
409 test_url_("data:text/html,<!doctype html>") {} 409 test_url_("data:text/html,<!doctype html>") {}
410 410
411 virtual void SetUp() override { 411 void SetUp() override {
412 EnablePixelOutput(); 412 EnablePixelOutput();
413 CompositingRenderWidgetHostViewBrowserTest::SetUp(); 413 CompositingRenderWidgetHostViewBrowserTest::SetUp();
414 } 414 }
415 415
416 void CopyFromCompositingSurfaceCallback(base::Closure quit_callback, 416 void CopyFromCompositingSurfaceCallback(base::Closure quit_callback,
417 bool result, 417 bool result,
418 const SkBitmap& bitmap) { 418 const SkBitmap& bitmap) {
419 EXPECT_EQ(expected_copy_from_compositing_surface_result_, result); 419 EXPECT_EQ(expected_copy_from_compositing_surface_result_, result);
420 if (!result) { 420 if (!result) {
421 quit_callback.Run(); 421 quit_callback.Run();
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 testing::Values(GL_COMPOSITING, SOFTWARE_COMPOSITING)); 906 testing::Values(GL_COMPOSITING, SOFTWARE_COMPOSITING));
907 INSTANTIATE_TEST_CASE_P( 907 INSTANTIATE_TEST_CASE_P(
908 GLAndSoftwareCompositing, 908 GLAndSoftwareCompositing,
909 CompositingRenderWidgetHostViewBrowserTestTabCaptureHighDPI, 909 CompositingRenderWidgetHostViewBrowserTestTabCaptureHighDPI,
910 testing::Values(GL_COMPOSITING, SOFTWARE_COMPOSITING)); 910 testing::Values(GL_COMPOSITING, SOFTWARE_COMPOSITING));
911 911
912 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) 912 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
913 913
914 } // namespace 914 } // namespace
915 } // namespace content 915 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.h ('k') | content/browser/renderer_host/sandbox_ipc_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698