#include <iterator>
#include "apps/switches.h"
#include "base/command_line.h"
#include "base/containers/contains.h"
#include "base/process/launch.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/test_switches.h"
#include "base/test/test_timeouts.h"
#include "build/branding_buildflags.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/apps/platform_apps/app_browsertest_util.h"
#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/extensions/load_error_reporter.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/simple_message_box_internal.h"
#include "chrome/common/chrome_result_codes.h"
#include "chrome/common/chrome_switches.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/test_launcher.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/test/extension_test_message_listener.h"
#include "sandbox/policy/switches.h"
PlatformAppBrowserTest;
namespace apps {
namespace {
constexpr char kTestExtensionId[] = …;
#if !BUILDFLAG(IS_CHROMEOS_LACROS)
const char* const kSwitchesToCopy[] = …;
#if BUILDFLAG(IS_MAC)
#define MAYBE_LoadAndLaunchAppChromeRunning …
#else
#define MAYBE_LoadAndLaunchAppChromeRunning …
#endif
IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest,
MAYBE_LoadAndLaunchAppChromeRunning) { … }
#if BUILDFLAG(IS_MAC)
#define MAYBE_LoadAndLaunchAppWithFile …
#else
#define MAYBE_LoadAndLaunchAppWithFile …
#endif
IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest,
MAYBE_LoadAndLaunchAppWithFile) { … }
#endif
class LoadAndLaunchPlatformAppBrowserTest : public PlatformAppBrowserTest { … };
class LoadAndLaunchExtensionBrowserTest : public PlatformAppBrowserTest { … };
IN_PROC_BROWSER_TEST_F(LoadAndLaunchPlatformAppBrowserTest,
LoadAndLaunchAppChromeNotRunning) { … }
IN_PROC_BROWSER_TEST_F(LoadAndLaunchExtensionBrowserTest,
LoadAndLaunchExtension) { … }
}
}