| 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 "components/safe_browsing/common/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. | 12 // Generate ipc protobuf traits size methods. |
| 13 #include "chrome/common/safe_browsing/protobuf_message_size_macros.h" | 13 #include "chrome/common/safe_browsing/protobuf_message_size_macros.h" |
| 14 namespace IPC { | 14 namespace IPC { |
| 15 #include "chrome/common/safe_browsing/ipc_protobuf_message_test_messages.h" | 15 #include "chrome/common/safe_browsing/ipc_protobuf_message_test_messages.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 ASSERT_TRUE(output.rep_comp_sub(2).has_foo()); | 154 ASSERT_TRUE(output.rep_comp_sub(2).has_foo()); |
| 155 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()); |
| 156 } else { | 156 } else { |
| 157 ASSERT_EQ(0, output.rep_comp_sub_size()); | 157 ASSERT_EQ(0, output.rep_comp_sub_size()); |
| 158 } | 158 } |
| 159 } | 159 } |
| 160 | 160 |
| 161 INSTANTIATE_TEST_CASE_P(IPCProtobufMessage, | 161 INSTANTIATE_TEST_CASE_P(IPCProtobufMessage, |
| 162 IPCProtobufMessageTest, | 162 IPCProtobufMessageTest, |
| 163 ::testing::Bool()); | 163 ::testing::Bool()); |
| OLD | NEW |