#include "services/service_manager/public/cpp/test/test_connector_factory.h"
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "mojo/public/cpp/bindings/pending_associated_receiver.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/receiver_set.h"
#include "services/service_manager/public/cpp/service.h"
#include "services/service_manager/public/mojom/connector.mojom.h"
#include "services/service_manager/public/mojom/service.mojom.h"
namespace service_manager {
namespace {
class ProxiedServiceConnector : public mojom::Connector { … };
}
TestConnectorFactory::TestConnectorFactory() { … }
TestConnectorFactory::~TestConnectorFactory() = default;
Connector* TestConnectorFactory::GetDefaultConnector() { … }
std::unique_ptr<Connector> TestConnectorFactory::CreateConnector() { … }
mojo::PendingReceiver<mojom::Service> TestConnectorFactory::RegisterInstance(
const std::string& service_name) { … }
void TestConnectorFactory::OnStartResponseHandler(
const std::string& service_name,
mojo::PendingReceiver<mojom::Connector> connector_receiver,
mojo::PendingAssociatedReceiver<mojom::ServiceControl> control_receiver) { … }
void TestConnectorFactory::RequestQuit() { … }
}