Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: ios/chrome/browser/ui/browser_view_controller_testing.mm

Issue 2588713002: Upstream Chrome on iOS source code [4/11]. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « ios/chrome/browser/ui/browser_view_controller_testing.h ('k') | ios/chrome/browser/ui/browser_view_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698