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

Side by Side Diff: content/browser/renderer_host/pepper/pepper_printing_host_unittest.cc

Issue 616603004: Replacing the OVERRIDE with override and FINAL with final in content/browser/renderer_host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch Created 6 years, 2 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 (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"
11 #include "ppapi/proxy/ppapi_messages.h" 11 #include "ppapi/proxy/ppapi_messages.h"
12 #include "ppapi/proxy/resource_message_params.h" 12 #include "ppapi/proxy/resource_message_params.h"
13 #include "ppapi/proxy/resource_message_test_sink.h" 13 #include "ppapi/proxy/resource_message_test_sink.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 namespace { 18 namespace {
19 19
20 // Mock implementation of |PepperPrintSettingsManager| for test purposes. 20 // Mock implementation of |PepperPrintSettingsManager| for test purposes.
21 class MockPepperPrintSettingsManager : public PepperPrintSettingsManager { 21 class MockPepperPrintSettingsManager : public PepperPrintSettingsManager {
22 public: 22 public:
23 MockPepperPrintSettingsManager(const PP_PrintSettings_Dev& settings); 23 MockPepperPrintSettingsManager(const PP_PrintSettings_Dev& settings);
24 virtual ~MockPepperPrintSettingsManager() {} 24 virtual ~MockPepperPrintSettingsManager() {}
25 25
26 // PepperPrintSettingsManager implementation. 26 // PepperPrintSettingsManager implementation.
27 virtual void GetDefaultPrintSettings( 27 virtual void GetDefaultPrintSettings(
28 PepperPrintSettingsManager::Callback callback) OVERRIDE; 28 PepperPrintSettingsManager::Callback callback) override;
29 29
30 private: 30 private:
31 PP_PrintSettings_Dev settings_; 31 PP_PrintSettings_Dev settings_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(MockPepperPrintSettingsManager); 33 DISALLOW_COPY_AND_ASSIGN(MockPepperPrintSettingsManager);
34 }; 34 };
35 35
36 MockPepperPrintSettingsManager::MockPepperPrintSettingsManager( 36 MockPepperPrintSettingsManager::MockPepperPrintSettingsManager(
37 const PP_PrintSettings_Dev& settings) 37 const PP_PrintSettings_Dev& settings)
38 : settings_(settings) {} 38 : settings_(settings) {}
(...skipping 76 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