#include "mojo/public/cpp/bindings/tests/test_native_types.h"
#include "ipc/ipc_mojo_message_helper.h"
namespace mojo {
namespace test {
TestNativeStruct::TestNativeStruct() = default;
TestNativeStruct::TestNativeStruct(const std::string& message, int x, int y)
: … { … }
TestNativeStruct::~TestNativeStruct() = default;
TestNativeStructWithAttachments::TestNativeStructWithAttachments() = default;
TestNativeStructWithAttachments::TestNativeStructWithAttachments(
TestNativeStructWithAttachments&& other) = default;
TestNativeStructWithAttachments::TestNativeStructWithAttachments(
const std::string& message,
mojo::ScopedMessagePipeHandle pipe)
: … { … }
TestNativeStructWithAttachments::~TestNativeStructWithAttachments() = default;
TestNativeStructWithAttachments& TestNativeStructWithAttachments::operator=(
TestNativeStructWithAttachments&& other) = default;
}
}
namespace IPC {
void ParamTraits<mojo::test::TestNativeStruct>::Write(base::Pickle* m,
const param_type& p) { … }
bool ParamTraits<mojo::test::TestNativeStruct>::Read(const base::Pickle* m,
base::PickleIterator* iter,
param_type* r) { … }
void ParamTraits<mojo::test::TestNativeStruct>::Log(const param_type& p,
std::string* l) { … }
void ParamTraits<mojo::test::TestNativeStructWithAttachments>::Write(
Message* m,
const param_type& p) { … }
bool ParamTraits<mojo::test::TestNativeStructWithAttachments>::Read(
const Message* m,
base::PickleIterator* iter,
param_type* r) { … }
void ParamTraits<mojo::test::TestNativeStructWithAttachments>::Log(
const param_type& p,
std::string* l) { … }
}