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

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: FakeMetadata Changes 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..cbaaae17c29674087e27a177882649d06e3137c5
--- /dev/null
+++ b/ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_whitelist_manager.h
@@ -0,0 +1,23 @@
+// 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>
+
+// Holds the metadata object from initWithMetadata.
rohitrao (ping after 24h) 2016/11/25 00:34:38 This comment should mention what metadata is used
sczs1 2016/11/26 04:10:18 Done.
+@property(nonatomic, readonly) id<NativeAppMetadata, NSObject> metadata;
+
+// Creates a new manager with |metadata| as a parameter.
+- (instancetype)initWithMetadata:(id<NativeAppMetadata>)metadata;
rohitrao (ping after 24h) 2016/11/25 00:34:38 How about removing this initializer and making the
sczs1 2016/11/26 04:10:18 Was thinking the same thing, will change it.
+
+@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