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

Unified Diff: ios/public/provider/chrome/browser/ui/test_infobar_view.mm

Issue 2505953002: [ios] Adds test provider implementations. (Closed)
Patch Set: Fix build file. Created 4 years, 1 month 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/public/provider/chrome/browser/ui/test_infobar_view.mm
diff --git a/ios/public/provider/chrome/browser/ui/test_infobar_view.mm b/ios/public/provider/chrome/browser/ui/test_infobar_view.mm
new file mode 100644
index 0000000000000000000000000000000000000000..ac66f1ea548f126cc724b4e0285370abd8ed41c7
--- /dev/null
+++ b/ios/public/provider/chrome/browser/ui/test_infobar_view.mm
@@ -0,0 +1,62 @@
+// 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/public/provider/chrome/browser/ui/test_infobar_view.h"
+
+@implementation TestInfoBarView
+@synthesize visibleHeight = _visibleHeight;
+
+- (NSString*)markedLabel {
+ return @"";
+}
+
++ (NSString*)stringAsLink:(NSString*)str tag:(NSUInteger)tag {
+ return str;
+}
+
+- (void)resetDelegate {
+}
+
+- (void)addCloseButtonWithTag:(NSInteger)tag
+ target:(id)target
+ action:(SEL)action {
+}
+
+- (void)addLeftIcon:(UIImage*)image {
+}
+
+- (void)addPlaceholderTransparentIcon:(CGSize const&)imageSize {
+}
+
+- (void)addLeftIconWithRoundedCornersAndShadow:(UIImage*)image {
+}
+
+- (void)addLabel:(NSString*)label {
+}
+
+- (void)addLabel:(NSString*)label target:(id)target action:(SEL)action {
+}
+
+- (void)addButton1:(NSString*)title1
+ tag1:(NSInteger)tag1
+ button2:(NSString*)title2
+ tag2:(NSInteger)tag2
+ target:(id)target
+ action:(SEL)action {
+}
+
+- (void)addButton:(NSString*)title
+ tag:(NSInteger)tag
+ target:(id)target
+ action:(SEL)action {
+}
+
+- (void)addSwitchWithLabel:(NSString*)label
+ isOn:(BOOL)isOn
+ tag:(NSInteger)tag
+ target:(id)target
+ action:(SEL)action {
+}
+
+@end

Powered by Google App Engine
This is Rietveld 408576698