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

Side by Side Diff: content/browser/renderer_host/pepper/pepper_printing_host_unittest.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) 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 "content/browser/renderer_host/pepper/browser_ppapi_host_test.h" 5 #include "content/browser/renderer_host/pepper/browser_ppapi_host_test.h"
6 #include "content/browser/renderer_host/pepper/pepper_print_settings_manager.h" 6 #include "content/browser/renderer_host/pepper/pepper_print_settings_manager.h"
7 #include "content/browser/renderer_host/pepper/pepper_printing_host.h" 7 #include "content/browser/renderer_host/pepper/pepper_printing_host.h"
8 #include "ppapi/c/pp_errors.h" 8 #include "ppapi/c/pp_errors.h"
9 #include "ppapi/host/host_message_context.h" 9 #include "ppapi/host/host_message_context.h"
10 #include "ppapi/host/ppapi_host.h" 10 #include "ppapi/host/ppapi_host.h"
(...skipping 29 matching lines...) Expand all
40 void MockPepperPrintSettingsManager::GetDefaultPrintSettings( 40 void MockPepperPrintSettingsManager::GetDefaultPrintSettings(
41 PepperPrintSettingsManager::Callback callback) { 41 PepperPrintSettingsManager::Callback callback) {
42 callback.Run(PepperPrintSettingsManager::Result(settings_, PP_OK)); 42 callback.Run(PepperPrintSettingsManager::Result(settings_, PP_OK));
43 } 43 }
44 44
45 class PepperPrintingHostTest : public testing::Test, 45 class PepperPrintingHostTest : public testing::Test,
46 public BrowserPpapiHostTest { 46 public BrowserPpapiHostTest {
47 public: 47 public:
48 PepperPrintingHostTest() {} 48 PepperPrintingHostTest() {}
49 49
50 virtual ~PepperPrintingHostTest() {} 50 ~PepperPrintingHostTest() override {}
51 51
52 DISALLOW_COPY_AND_ASSIGN(PepperPrintingHostTest); 52 DISALLOW_COPY_AND_ASSIGN(PepperPrintingHostTest);
53 }; 53 };
54 54
55 bool PP_SizeEqual(const PP_Size& lhs, const PP_Size& rhs) { 55 bool PP_SizeEqual(const PP_Size& lhs, const PP_Size& rhs) {
56 return lhs.width == rhs.width && lhs.height == rhs.height; 56 return lhs.width == rhs.width && lhs.height == rhs.height;
57 } 57 }
58 58
59 bool PP_RectEqual(const PP_Rect& lhs, const PP_Rect& rhs) { 59 bool PP_RectEqual(const PP_Rect& lhs, const PP_Rect& rhs) {
60 return lhs.point.x == rhs.point.x && lhs.point.y == rhs.point.y && 60 return lhs.point.x == rhs.point.x && lhs.point.y == rhs.point.y &&
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 PP_SizeEqual(expected_settings.paper_size, actual_settings.paper_size)); 115 PP_SizeEqual(expected_settings.paper_size, actual_settings.paper_size));
116 EXPECT_EQ(expected_settings.dpi, actual_settings.dpi); 116 EXPECT_EQ(expected_settings.dpi, actual_settings.dpi);
117 EXPECT_EQ(expected_settings.orientation, actual_settings.orientation); 117 EXPECT_EQ(expected_settings.orientation, actual_settings.orientation);
118 EXPECT_EQ(expected_settings.print_scaling_option, 118 EXPECT_EQ(expected_settings.print_scaling_option,
119 actual_settings.print_scaling_option); 119 actual_settings.print_scaling_option);
120 EXPECT_EQ(expected_settings.grayscale, actual_settings.grayscale); 120 EXPECT_EQ(expected_settings.grayscale, actual_settings.grayscale);
121 EXPECT_EQ(expected_settings.format, actual_settings.format); 121 EXPECT_EQ(expected_settings.format, actual_settings.format);
122 } 122 }
123 123
124 } // namespace content 124 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698