Commit e80904a7 authored by tapted@chromium.org's avatar tapted@chromium.org

MacViews: Add stubs for toolkit-views BrowserActionTestUtil functions for Mac

This is part of allowing interactive_ui_tests to compile on MacViews for
initial coverage on the bots (while still using Cocoa UI). That is, the
goal here is to get interactive_ui_tests to link so that other tests can
run (initially).

BUG=399191

Review URL: https://codereview.chromium.org/440833005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287943 0039d316-1c4b-4281-b951-d872f2087c98
parent e7d6a1b3
......@@ -29,13 +29,11 @@ class BrowserActionTestUtil {
// Returns the number of browser action currently visible.
int VisibleBrowserActions();
#if defined(TOOLKIT_VIEWS)
// Returns the ExtensionAction for the given index.
ExtensionAction* GetExtensionAction(int index);
// Inspects the extension popup for the action at the given index.
void InspectPopup(int index);
#endif
// Returns whether the browser action at |index| has a non-null icon. Note
// that the icon is loaded asynchronously, in which case you can wait for it
......
......@@ -36,6 +36,15 @@ int BrowserActionTestUtil::NumberOfBrowserActions() {
return [GetController(browser_) buttonCount];
}
ExtensionAction* BrowserActionTestUtil::GetExtensionAction(int index) {
NOTREACHED();
return NULL;
}
void BrowserActionTestUtil::InspectPopup(int index) {
NOTREACHED();
}
bool BrowserActionTestUtil::HasIcon(int index) {
return [GetButton(browser_, index) image] != nil;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment