chromium/services/service_manager/tests/background_service_manager_unittest.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "services/service_manager/background_service_manager.h"

#include <memory>
#include <vector>

#include "base/functional/bind.h"
#include "base/no_destructor.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "base/values.h"
#include "build/build_config.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "services/service_manager/public/cpp/connector.h"
#include "services/service_manager/public/cpp/constants.h"
#include "services/service_manager/public/cpp/manifest.h"
#include "services/service_manager/public/cpp/manifest_builder.h"
#include "services/service_manager/public/cpp/service.h"
#include "services/service_manager/public/cpp/service_receiver.h"
#include "services/service_manager/tests/background.test-mojom.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace service_manager {
namespace {

const char kTestName[] =;
const char kAppName[] =;

const char kTestServiceCapability[] =;

const std::vector<Manifest>& GetTestManifests() {}

// The parent unit test suite service, not the underlying test service.
class ServiceImpl : public Service {};

void SetFlagAndRunClosure(bool* flag, base::OnceClosure closure) {}

// Uses BackgroundServiceManager to start the service manager in the background
// and connects to background_service_manager_test_service, verifying we can
// send a message to the service.
#if BUILDFLAG(IS_ANDROID)
// TODO(crbug.com/40458478): This test is disabled, as it fails
// on the Android GN bot.
#define MAYBE_Basic
#else
#define MAYBE_Basic
#endif
TEST(BackgroundServiceManagerTest, MAYBE_Basic) {}

}  // namespace
}  // namespace service_manager