#include "chrome/browser/extensions/extension_action_test_util.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "chrome/browser/extensions/tab_helper.h"
#include "chrome/browser/extensions/test_extension_system.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/toolbar/toolbar_actions_model.h"
#include "chrome/browser/ui/toolbar/toolbar_actions_model_factory.h"
#include "components/sessions/content/session_tab_helper.h"
#include "content/public/browser/web_contents.h"
#include "extensions/browser/extension_action.h"
#include "extensions/browser/extension_action_manager.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension.h"
namespace extensions {
namespace extension_action_test_util {
namespace {
size_t GetPageActionCount(content::WebContents* web_contents,
bool only_count_visible) { … }
std::unique_ptr<KeyedService> BuildToolbarModel(
content::BrowserContext* context) { … }
ToolbarActionsModel* CreateToolbarModelImpl(Profile* profile,
bool wait_for_ready) { … }
}
size_t GetVisiblePageActionCount(content::WebContents* web_contents) { … }
size_t GetTotalPageActionCount(content::WebContents* web_contents) { … }
ToolbarActionsModel* CreateToolbarModelForProfile(Profile* profile) { … }
ToolbarActionsModel* CreateToolbarModelForProfileWithoutWaitingForReady(
Profile* profile) { … }
}
}