| OLD | NEW |
| 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 "chrome/common/safe_browsing/ipc_protobuf_message_test.pb.h" | 5 #include "chrome/common/safe_browsing/ipc_protobuf_message_test.pb.h" |
| 6 #include "ipc/ipc_message.h" | 6 #include "ipc/ipc_message.h" |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 8 |
| 9 #define IPC_MESSAGE_IMPL | 9 #define IPC_MESSAGE_IMPL |
| 10 #include "chrome/common/safe_browsing/ipc_protobuf_message_test_messages.h" | 10 #include "chrome/common/safe_browsing/ipc_protobuf_message_test_messages.h" |
| 11 | 11 |
| 12 // Generate ipc protobuf traits size methods. |
| 13 #include "chrome/common/safe_browsing/protobuf_message_size_macros.h" |
| 14 namespace IPC { |
| 15 #include "chrome/common/safe_browsing/ipc_protobuf_message_test_messages.h" |
| 16 } // namespace IPC |
| 12 // Generate ipc protobuf traits write methods. | 17 // Generate ipc protobuf traits write methods. |
| 13 #include "chrome/common/safe_browsing/protobuf_message_write_macros.h" | 18 #include "chrome/common/safe_browsing/protobuf_message_write_macros.h" |
| 14 namespace IPC { | 19 namespace IPC { |
| 15 #include "chrome/common/safe_browsing/ipc_protobuf_message_test_messages.h" | 20 #include "chrome/common/safe_browsing/ipc_protobuf_message_test_messages.h" |
| 16 } // namespace IPC | 21 } // namespace IPC |
| 17 | 22 |
| 18 // Generate ipc protobuf traits read methods. | 23 // Generate ipc protobuf traits read methods. |
| 19 #include "chrome/common/safe_browsing/protobuf_message_read_macros.h" | 24 #include "chrome/common/safe_browsing/protobuf_message_read_macros.h" |
| 20 namespace IPC { | 25 namespace IPC { |
| 21 #include "chrome/common/safe_browsing/ipc_protobuf_message_test_messages.h" | 26 #include "chrome/common/safe_browsing/ipc_protobuf_message_test_messages.h" |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 ASSERT_TRUE(output.rep_comp_sub(2).has_foo()); | 154 ASSERT_TRUE(output.rep_comp_sub(2).has_foo()); |
| 150 EXPECT_EQ(input.rep_comp_sub(2).foo(), output.rep_comp_sub(2).foo()); | 155 EXPECT_EQ(input.rep_comp_sub(2).foo(), output.rep_comp_sub(2).foo()); |
| 151 } else { | 156 } else { |
| 152 ASSERT_EQ(0, output.rep_comp_sub_size()); | 157 ASSERT_EQ(0, output.rep_comp_sub_size()); |
| 153 } | 158 } |
| 154 } | 159 } |
| 155 | 160 |
| 156 INSTANTIATE_TEST_CASE_P(IPCProtobufMessage, | 161 INSTANTIATE_TEST_CASE_P(IPCProtobufMessage, |
| 157 IPCProtobufMessageTest, | 162 IPCProtobufMessageTest, |
| 158 ::testing::Bool()); | 163 ::testing::Bool()); |
| OLD | NEW |