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

Unified Diff: ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_whitelist_manager.h

Issue 2529763002: Create FakeProviders for NativeAppMetadata and NativeAppManager (Closed)
Patch Set: Rebase and CL Feedback 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/native_app_launcher/fake_native_app_whitelist_manager.h
diff --git a/ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_whitelist_manager.h b/ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_whitelist_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..9ea2dcba7ceaf8f31caa1d9201ac2c98ed00509c
--- /dev/null
+++ b/ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_whitelist_manager.h
@@ -0,0 +1,26 @@
+// 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.
+
+#ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_NATIVE_APP_LAUNCHER_FAKE_NATIVE_APP_WHITELIST_MANAGER_H_
+#define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_NATIVE_APP_LAUNCHER_FAKE_NATIVE_APP_WHITELIST_MANAGER_H_
+
+#import <Foundation/Foundation.h>
+
+#import "ios/public/provider/chrome/browser/native_app_launcher/native_app_whitelist_manager.h"
+
+// Fake NativeAppWhitelistManager used for testing purposes.
+@interface FakeNativeAppWhitelistManager : NSObject<NativeAppWhitelistManager>
+
+// The metadata returned by calls to |newNativeAppForURL:|.
+@property(nonatomic, strong, readwrite) id<NativeAppMetadata> metadata;
+
+// The Apps array returned by calls to |filteredAppsUsingBlock:|.
+@property(nonatomic, strong, readwrite) NSArray* appWhitelist;
+
+// The String that will be used to create the NSURL for |schemeForAppId:|.
+@property(nonatomic, copy, readwrite) NSString* appScheme;
+
+@end
+
+#endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_NATIVE_APP_LAUNCHER_FAKE_NATIVE_APP_WHITELIST_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698