chromium/chrome/enterprise_companion/app/app_shutdown_unittest.cc

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

#include <memory>

#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/run_loop.h"
#include "base/strings/strcat.h"
#include "base/test/multiprocess_test.h"
#include "base/test/task_environment.h"
#include "base/test/test_file_util.h"
#include "base/test/test_timeouts.h"
#include "base/threading/thread_restrictions.h"
#include "chrome/enterprise_companion/app/app.h"
#include "chrome/enterprise_companion/enterprise_companion_service.h"
#include "chrome/enterprise_companion/enterprise_companion_service_stub.h"
#include "chrome/enterprise_companion/enterprise_companion_status.h"
#include "chrome/enterprise_companion/ipc_support.h"
#include "chrome/enterprise_companion/mojom/enterprise_companion.mojom.h"
#include "chrome/enterprise_companion/test/test_utils.h"
#include "components/named_mojo_ipc_server/connection_info.h"
#include "mojo/public/cpp/platform/named_platform_channel.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/multiprocess_func_list.h"

namespace enterprise_companion {
namespace {

constexpr char kServerNameFlag[] =;
constexpr int32_t kIpcCallerNotAllowedExitCode =;

class MockEnterpriseCompanionService final : public EnterpriseCompanionService {};

}  // namespace

class AppShutdownTest : public ::testing::Test {};

TEST_F(AppShutdownTest, ServiceReachable) {}

TEST_F(AppShutdownTest, UntrustedCallerRejected) {}

TEST_F(AppShutdownTest, Timeout) {}

MULTIPROCESS_TEST_MAIN(ShutdownAppClient) {}

}  // namespace enterprise_companion