#include "chrome/browser/ui/views/extensions/extensions_toolbar_interactive_uitest.h"
#include <vector>
#include "base/path_service.h"
#include "base/strings/stringprintf.h"
#include "chrome/browser/extensions/browsertest_util.h"
#include "chrome/browser/extensions/chrome_test_extension_loader.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_tab_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/views/extensions/extensions_toolbar_container.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/toolbar/toolbar_view.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/crx_file/id_util.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/test_navigation_observer.h"
#include "extensions/browser/extension_system.h"
#include "extensions/common/extension_builder.h"
#include "extensions/test/test_extension_dir.h"
#include "net/dns/mock_host_resolver.h"
#include "ui/views/layout/animating_layout_manager_test_util.h"
#include "ui/views/view_utils.h"
ExtensionsToolbarUITest::ExtensionsToolbarUITest() = default;
ExtensionsToolbarUITest::~ExtensionsToolbarUITest() = default;
Profile* ExtensionsToolbarUITest::profile() { … }
scoped_refptr<const extensions::Extension>
ExtensionsToolbarUITest::LoadTestExtension(const std::string& path,
bool allow_incognito) { … }
scoped_refptr<const extensions::Extension>
ExtensionsToolbarUITest::ForceInstallExtension(const std::string& name) { … }
scoped_refptr<const extensions::Extension>
ExtensionsToolbarUITest::InstallExtension(const std::string& name) { … }
scoped_refptr<const extensions::Extension>
ExtensionsToolbarUITest::InstallExtensionWithHostPermissions(
const std::string& name,
const std::string& host_permission,
const std::string& content_script_run_location) { … }
void ExtensionsToolbarUITest::AppendExtension(
scoped_refptr<const extensions::Extension> extension) { … }
void ExtensionsToolbarUITest::DisableExtension(
const extensions::ExtensionId& extension_id) { … }
void ExtensionsToolbarUITest::SetUpIncognitoBrowser() { … }
void ExtensionsToolbarUITest::SetUpOnMainThread() { … }
ExtensionsToolbarContainer*
ExtensionsToolbarUITest::GetExtensionsToolbarContainer() const { … }
ExtensionsToolbarContainer*
ExtensionsToolbarUITest::GetExtensionsToolbarContainerForBrowser(
Browser* browser) const { … }
std::vector<ToolbarActionView*> ExtensionsToolbarUITest::GetToolbarActionViews()
const { … }
std::vector<ToolbarActionView*>
ExtensionsToolbarUITest::GetToolbarActionViewsForBrowser(
Browser* browser) const { … }
std::vector<ToolbarActionView*>
ExtensionsToolbarUITest::GetVisibleToolbarActionViews() const { … }
ExtensionsToolbarButton* ExtensionsToolbarUITest::extensions_button() { … }
ExtensionsMenuCoordinator* ExtensionsToolbarUITest::menu_coordinator() { … }
bool ExtensionsToolbarUITest::DidInjectScript(
content::WebContents* web_contents) { … }
void ExtensionsToolbarUITest::NavigateTo(const GURL& url) { … }
void ExtensionsToolbarUITest::AddSiteAccessRequest(
const extensions::Extension& extension,
content::WebContents* web_contents) { … }
void ExtensionsToolbarUITest::ClickButton(views::Button* button) const { … }
void ExtensionsToolbarUITest::WaitForAnimation() { … }