#include <optional>
#include "base/path_service.h"
#include "base/strings/stringprintf.h"
#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest.h"
#include "extensions/common/manifest_constants.h"
#include "extensions/common/manifest_handlers/externally_connectable.h"
#include "extensions/common/url_pattern.h"
#include "extensions/test/test_extension_dir.h"
namespace extensions {
namespace {
constexpr char kComponentExtensionKey[] = …;
constexpr int kSentinelValue = …;
int RetrieveSentinelValue(Browser* browser) { … }
class ExtensionBrowserTestWithCustomTestResourcesLocation
: public ExtensionBrowserTest { … };
}
IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, TestResourcesLoad) { … }
IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest,
TestResourcesLoadInComponentExtension) { … }
IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest,
LoadComponentExtensionUpdateWithManifestChanges) { … }
IN_PROC_BROWSER_TEST_F(ExtensionBrowserTestWithCustomTestResourcesLocation,
TestResourcesLoadFromCustomPath) { … }
}