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

Unified Diff: ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_metadata.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_metadata.h
diff --git a/ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_metadata.h b/ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_metadata.h
new file mode 100644
index 0000000000000000000000000000000000000000..30b5f76fa1eb44e366ee9fa4c4145c2c1c482c30
--- /dev/null
+++ b/ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_metadata.h
@@ -0,0 +1,29 @@
+// 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_METADATA_H_
+#define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_NATIVE_APP_LAUNCHER_FAKE_NATIVE_APP_METADATA_H_
+
+#import <Foundation/Foundation.h>
+
+#import "ios/public/provider/chrome/browser/native_app_launcher/native_app_metadata.h"
+
+// FakeNativeAppMetadata used for testing purposes.
+@interface FakeNativeAppMetadata : NSObject<NativeAppMetadata>
+
+// Name of the FakeNativeAppMetadata App.
+@property(nonatomic, assign) NSString* appName;
rohitrao (ping after 24h) 2016/11/25 00:34:38 This is personal preference, but I prefer to expli
sczs1 2016/11/26 04:10:18 Sounds good, it describes the property better.
+
+// Id of the FakeNativeAppMetadata App.
+@property(nonatomic, assign) NSString* appId;
+
+// Checks if the FakeNativeApp is Google owned.
+@property(getter=isGoogleOwnedApp) BOOL googleOwnedApp;
sdefresne 2016/11/25 08:41:57 Is this readonly? Maybe add "readwrite" here too.
sczs1 2016/11/26 04:10:18 Done.
+
+// Checks if the FakeNativeApp is installed.
+@property(getter=isInstalled) BOOL installed;
sdefresne 2016/11/25 08:41:57 ditto "nonatomic".
sczs1 2016/11/26 04:10:18 Done.
+
+@end
+
+#endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_NATIVE_APP_LAUNCHER_FAKE_NATIVE_APP_METADATA_H_

Powered by Google App Engine
This is Rietveld 408576698