#include "chrome/browser/extensions/chrome_extension_test_notification_observer.h"
#include "base/functional/bind.h"
#include "base/scoped_observation.h"
#include "chrome/browser/extensions/extension_action_test_util.h"
#include "chrome/browser/extensions/extension_util.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/test_utils.h"
#include "extensions/browser/process_manager.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_id.h"
namespace extensions {
namespace {
bool HasPageActionVisibilityReachedTarget(
Browser* browser,
size_t target_visible_page_action_count) { … }
bool HaveAllExtensionRenderFrameHostsFinishedLoading(ProcessManager* manager) { … }
}
ChromeExtensionTestNotificationObserver::
ChromeExtensionTestNotificationObserver(Browser* browser)
: … { … }
ChromeExtensionTestNotificationObserver::
ChromeExtensionTestNotificationObserver(content::BrowserContext* context)
: … { … }
ChromeExtensionTestNotificationObserver::
~ChromeExtensionTestNotificationObserver() { … }
content::BrowserContext*
ChromeExtensionTestNotificationObserver::GetBrowserContext() { … }
bool ChromeExtensionTestNotificationObserver::
WaitForPageActionVisibilityChangeTo(int count) { … }
bool ChromeExtensionTestNotificationObserver::WaitForExtensionViewsToLoad() { … }
bool ChromeExtensionTestNotificationObserver::WaitForExtensionIdle(
const ExtensionId& extension_id) { … }
bool ChromeExtensionTestNotificationObserver::WaitForExtensionNotIdle(
const ExtensionId& extension_id) { … }
void ChromeExtensionTestNotificationObserver::OnExtensionActionUpdated(
ExtensionAction* extension_action,
content::WebContents* web_contents,
content::BrowserContext* browser_context) { … }
}