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

Side by Side Diff: chrome/common/safe_browsing/ipc_protobuf_message_unittest.cc

Issue 2743563006: Componentize safe_browsing [+1]: move protos to component
Patch Set: fix remaining proto references Created 3 years, 9 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 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
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());
OLDNEW
« no previous file with comments | « chrome/common/safe_browsing/ipc_protobuf_message_test.proto ('k') | chrome/common/safe_browsing/permission_report.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698