chromium/mojo/public/cpp/bindings/tests/test_native_types.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 test
}  // namespace mojo

namespace IPC {

// static
void ParamTraits<mojo::test::TestNativeStruct>::Write(base::Pickle* m,
                                                      const param_type& p) {}

// static
bool ParamTraits<mojo::test::TestNativeStruct>::Read(const base::Pickle* m,
                                                     base::PickleIterator* iter,
                                                     param_type* r) {}

// static
void ParamTraits<mojo::test::TestNativeStruct>::Log(const param_type& p,
                                                    std::string* l) {}

// static
void ParamTraits<mojo::test::TestNativeStructWithAttachments>::Write(
    Message* m,
    const param_type& p) {}

// static
bool ParamTraits<mojo::test::TestNativeStructWithAttachments>::Read(
    const Message* m,
    base::PickleIterator* iter,
    param_type* r) {}

// static
void ParamTraits<mojo::test::TestNativeStructWithAttachments>::Log(
    const param_type& p,
    std::string* l) {}

}  // namespace IPC