#include "mojo/public/cpp/bindings/lib/multiplex_router.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "mojo/public/cpp/bindings/interface_endpoint_client.h"
#include "mojo/public/cpp/bindings/message.h"
#include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h"
#include "mojo/public/cpp/bindings/tests/message_queue.h"
#include "mojo/public/cpp/bindings/tests/router_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace mojo {
namespace test {
namespace {
const char kTestInterfaceName[] = …;
IPCStableHashFunction MessageToMethodInfo(Message& message) { … }
const char* MessageToMethodName(Message& message) { … }
MultiplexRouter;
class MultiplexRouterTest : public testing::Test { … };
TEST_F(MultiplexRouterTest, BasicRequestResponse) { … }
TEST_F(MultiplexRouterTest, BasicRequestResponse_Synchronous) { … }
TEST_F(MultiplexRouterTest, LazyResponses) { … }
void ForwardErrorHandler(bool* called, base::OnceClosure callback) { … }
TEST_F(MultiplexRouterTest, MissingResponses) { … }
TEST_F(MultiplexRouterTest, LateResponse) { … }
}
}
}