| OLD | NEW |
| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 &reply_params, | 98 &reply_params, |
| 99 &reply_msg)); | 99 &reply_msg)); |
| 100 | 100 |
| 101 // Validation of reply. | 101 // Validation of reply. |
| 102 EXPECT_EQ(call_params.sequence(), reply_params.sequence()); | 102 EXPECT_EQ(call_params.sequence(), reply_params.sequence()); |
| 103 EXPECT_EQ(PP_OK, reply_params.result()); | 103 EXPECT_EQ(PP_OK, reply_params.result()); |
| 104 PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply::Schema::Param | 104 PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply::Schema::Param |
| 105 reply_msg_param; | 105 reply_msg_param; |
| 106 ASSERT_TRUE(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply::Read( | 106 ASSERT_TRUE(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply::Read( |
| 107 &reply_msg, &reply_msg_param)); | 107 &reply_msg, &reply_msg_param)); |
| 108 PP_PrintSettings_Dev actual_settings = reply_msg_param.a; | 108 PP_PrintSettings_Dev actual_settings = get<0>(reply_msg_param); |
| 109 | 109 |
| 110 EXPECT_TRUE(PP_RectEqual(expected_settings.printable_area, | 110 EXPECT_TRUE(PP_RectEqual(expected_settings.printable_area, |
| 111 actual_settings.printable_area)); | 111 actual_settings.printable_area)); |
| 112 EXPECT_TRUE(PP_RectEqual(expected_settings.content_area, | 112 EXPECT_TRUE(PP_RectEqual(expected_settings.content_area, |
| 113 actual_settings.content_area)); | 113 actual_settings.content_area)); |
| 114 EXPECT_TRUE( | 114 EXPECT_TRUE( |
| 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 |
| OLD | NEW |