Index: ios/chrome/test/app/chrome_test_util.h |
diff --git a/ios/chrome/test/app/chrome_test_util.h b/ios/chrome/test/app/chrome_test_util.h |
index 3aa6108ddb1b0c86c393b3a74fc3f9bce14d1736..2dda8a474e5409bcade67459f331fabf38a18eaa 100644 |
--- a/ios/chrome/test/app/chrome_test_util.h |
+++ b/ios/chrome/test/app/chrome_test_util.h |
@@ -6,6 +6,7 @@ |
#define IOS_CHROME_TEST_APP_CHROME_TEST_UTIL_H_ |
#import "base/ios/block_types.h" |
+#import "ios/chrome/browser/ui/commands/browser_commands.h" |
#import "ios/web/public/web_state/web_state.h" |
namespace ios { |
@@ -41,6 +42,9 @@ ios::ChromeBrowserState* GetCurrentIncognitoBrowserState(); |
// Returns the number of key commands currently registered with the main BVC. |
NSUInteger GetRegisteredKeyCommandsCount(); |
+// Returns the dispatcher for the main BVC. |
+id<BrowserCommands> BrowserCommandDispatcherForMainBVC(); |
+ |
// Runs |command| using the active view controller. |
void RunCommandWithActiveViewController(GenericChromeCommand* command); |