| Index: ios/chrome/browser/ui/browser_view_controller_testing.mm
|
| diff --git a/ios/chrome/browser/ui/browser_view_controller_testing.mm b/ios/chrome/browser/ui/browser_view_controller_testing.mm
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ba66516df8823379731a11e5fa66fe12e5171537
|
| --- /dev/null
|
| +++ b/ios/chrome/browser/ui/browser_view_controller_testing.mm
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#import "ios/chrome/browser/ui/browser_view_controller_testing.h"
|
| +
|
| +#import "ios/chrome/browser/ui/toolbar/web_toolbar_controller.h"
|
| +#import "ios/chrome/browser/ui/toolbar/web_toolbar_controller_private.h"
|
| +
|
| +@interface BrowserViewController (Private)
|
| +
|
| +- (WebToolbarController*)toolbarController;
|
| +
|
| +@end
|
| +
|
| +@implementation BrowserViewController (TestingAdditions)
|
| +
|
| +- (BOOL)testing_isLoading {
|
| + return [[self toolbarController] isLoading];
|
| +}
|
| +
|
| +- (void)testing_focusOmnibox {
|
| + [[self toolbarController] focusOmnibox];
|
| +}
|
| +
|
| +- (CGRect)testing_shareButtonAnchorRect {
|
| + return [[self toolbarController] shareButtonAnchorRect];
|
| +}
|
| +
|
| +@end
|
|
|