#include "chrome/common/safe_browsing/ipc_protobuf_message_test.pb.h"
#include "ipc/ipc_message.h"
#include "testing/gtest/include/gtest/gtest.h"
#define IPC_MESSAGE_IMPL
#undef CHROME_COMMON_SAFE_BROWSING_IPC_PROTOBUF_MESSAGE_TEST_MESSAGES_H_
#include "chrome/common/safe_browsing/ipc_protobuf_message_test_messages.h"
#include "chrome/common/safe_browsing/protobuf_message_write_macros.h"
namespace IPC {
#undef CHROME_COMMON_SAFE_BROWSING_IPC_PROTOBUF_MESSAGE_TEST_MESSAGES_H_
#include "chrome/common/safe_browsing/ipc_protobuf_message_test_messages.h"
}
#include "chrome/common/safe_browsing/protobuf_message_read_macros.h"
namespace IPC {
#undef CHROME_COMMON_SAFE_BROWSING_IPC_PROTOBUF_MESSAGE_TEST_MESSAGES_H_
#include "chrome/common/safe_browsing/ipc_protobuf_message_test_messages.h"
}
#include "chrome/common/safe_browsing/protobuf_message_log_macros.h"
namespace IPC {
#undef CHROME_COMMON_SAFE_BROWSING_IPC_PROTOBUF_MESSAGE_TEST_MESSAGES_H_
#include "chrome/common/safe_browsing/ipc_protobuf_message_test_messages.h"
}
class IPCProtobufMessageTest : public ::testing::TestWithParam<bool> { … };
TEST_P(IPCProtobufMessageTest, FundamentalField) { … }
TEST_P(IPCProtobufMessageTest, StringField) { … }
TEST_P(IPCProtobufMessageTest, BytesField) { … }
TEST_P(IPCProtobufMessageTest, OptionalSubmessage) { … }
TEST_P(IPCProtobufMessageTest, RepeatedSubmessage) { … }
INSTANTIATE_TEST_SUITE_P(…);