#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() { … }
class ServiceImpl : public Service { … };
void SetFlagAndRunClosure(bool* flag, base::OnceClosure closure) { … }
#if BUILDFLAG(IS_ANDROID)
#define MAYBE_Basic …
#else
#define MAYBE_Basic …
#endif
TEST(BackgroundServiceManagerTest, MAYBE_Basic) { … }
}
}