#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/profiles/profile.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/test_utils.h"
#include "extensions/browser/extension_action.h"
#include "extensions/browser/extension_action_manager.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_system.h"
#include "extensions/browser/state_store.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_id.h"
#include "extensions/test/extension_test_message_listener.h"
#include "third_party/skia/include/core/SkColor.h"
namespace extensions {
namespace {
const char kBrowserActionStorageKey[] = …;
const char kExtensionName[] = …;
void QuitMessageLoop(content::MessageLoopRunner* runner,
std::optional<base::Value> value) { … }
void WaitForStateStore(Profile* profile, const ExtensionId& extension_id) { … }
}
IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest,
PRE_BrowserActionDefaultPersistence) { … }
IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, BrowserActionDefaultPersistence) { … }
}