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

Unified Diff: ios/public/test/test_updatable_resource_provider.h

Issue 1102833003: [iOS] Upstream UpdatableConfig test provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation Created 5 years, 8 months 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
« no previous file with comments | « ios/ios_tests.gyp ('k') | ios/public/test/test_updatable_resource_provider.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/public/test/test_updatable_resource_provider.h
diff --git a/ios/public/test/test_updatable_resource_provider.h b/ios/public/test/test_updatable_resource_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..c067c712f514616234019e9b80952d966ee497cc
--- /dev/null
+++ b/ios/public/test/test_updatable_resource_provider.h
@@ -0,0 +1,25 @@
+// Copyright 2015 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_TEST_TEST_UPDATABLE_RESOURCE_PROVIDER_H_
+#define IOS_PUBLIC_TEST_TEST_UPDATABLE_RESOURCE_PROVIDER_H_
+
+#import "ios/public/provider/chrome/browser/updatable_resource_provider.h"
+
+namespace ios {
+
+// Dummy UpdatableResourceProvider implementation that simply loads data from
+// the specified plist file.
+class TestUpdatableResourceProvider : public ios::UpdatableResourceProvider {
+ private:
+ // UpdatableResourceProvider implementation.
+ NSString* GetUpdateNotificationName() override;
+ id<UpdatableResourceBridge> CreateUpdatableResource(
+ NSString* resource_identifier,
+ id<UpdatableResourceDelegate> delegate) override;
+};
+
+} // namespace ios
+
+#endif // IOS_PUBLIC_TEST_TEST_UPDATABLE_RESOURCE_PROVIDER_H_
« no previous file with comments | « ios/ios_tests.gyp ('k') | ios/public/test/test_updatable_resource_provider.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698