#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/task_environment.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#include "services/service_manager/public/cpp/binder_registry.h"
#include "services/service_manager/public/cpp/connector.h"
#include "services/service_manager/public/cpp/service.h"
#include "services/service_manager/public/cpp/service_receiver.h"
#include "services/service_manager/public/cpp/test/test_connector_factory.h"
#include "services/service_manager/tests/test_support.test-mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace service_manager {
namespace {
class TestBImpl : public mojom::TestB { … };
class TestCImpl : public mojom::TestC { … };
void OnTestBReceiver(mojo::PendingReceiver<mojom::TestB> receiver) { … }
void OnTestCReceiver(mojo::PendingReceiver<mojom::TestC> receiver) { … }
class TestBServiceImpl : public Service { … };
class TestCServiceImpl : public Service { … };
constexpr char kServiceBName[] = …;
constexpr char kServiceCName[] = …;
}
TEST(ServiceManagerTestSupport, TestConnectorFactoryUniqueService) { … }
TEST(ServiceManagerTestSupport, TestConnectorFactoryMultipleServices) { … }
}