chromium/services/service_manager/tests/test_support_unittest.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 "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 {

// TestBImpl and TestCImpl are simple test interfaces whose methods invokes
// their callback when called without doing anything.
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[] =;

}  // namespace

TEST(ServiceManagerTestSupport, TestConnectorFactoryUniqueService) {}

TEST(ServiceManagerTestSupport, TestConnectorFactoryMultipleServices) {}

}  // namespace service_manager