#ifndef EXTENSIONS_SHELL_TEST_TEST_SHELL_MAIN_DELEGATE_H_
#define EXTENSIONS_SHELL_TEST_TEST_SHELL_MAIN_DELEGATE_H_
#include <memory>
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "extensions/shell/app/shell_main_delegate.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
#if BUILDFLAG(IS_CHROMEOS_LACROS)
#include "chromeos/lacros/lacros_service.h"
#endif
namespace content {
class ContentUtilityClient;
}
namespace extensions {
class TestShellMainDelegate : public extensions::ShellMainDelegate {
public:
TestShellMainDelegate();
TestShellMainDelegate(const TestShellMainDelegate&) = delete;
TestShellMainDelegate& operator=(const TestShellMainDelegate&) = delete;
~TestShellMainDelegate() override;
#if BUILDFLAG(IS_CHROMEOS_LACROS)
absl::optional<int> PostEarlyInitialization(InvokedIn invoked_in) override;
#endif
protected:
content::ContentUtilityClient* CreateContentUtilityClient() override;
private:
std::unique_ptr<content::ContentUtilityClient> utility_client_;
#if BUILDFLAG(IS_CHROMEOS_LACROS)
std::unique_ptr<chromeos::LacrosService> lacros_service_;
#endif
};
}
#endif