#include <string>
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/ptr_util.h"
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "base/task/current_thread.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/perf_time_logger.h"
#include "base/test/task_environment.h"
#include "mojo/core/embedder/embedder.h"
#include "mojo/core/test/mojo_test_base.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/interfaces/bindings/tests/ping_service.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace mojo {
namespace {
class EchoServiceImpl : public test::EchoService { … };
class PingPongTest { … };
void PingPongTest::RunTest(int iterations, int batch_size, int message_size) { … }
void PingPongTest::DoPing() { … }
void PingPongTest::OnPingDone(const std::string& reply) { … }
class MojoE2EPerftest : public core::test::MojoTestBase { … };
void CreateAndRunService(PendingReceiver<test::EchoService> receiver,
base::OnceClosure quit_closure) { … }
DEFINE_TEST_CLIENT_TEST_WITH_PIPE(PingService, MojoE2EPerftest, mp) { … }
TEST_F(MojoE2EPerftest, MultiProcessEchoMainThread) { … }
TEST_F(MojoE2EPerftest, MultiProcessEchoIoThread) { … }
}
}