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

Unified Diff: extensions/test/test_permissions_provider.h

Issue 234563003: extensions: Introduce a fake ExtensionsClient implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address yoz review Created 6 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 | « extensions/test/test_permission_message_provider.cc ('k') | extensions/test/test_permissions_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/test/test_permissions_provider.h
diff --git a/extensions/test/test_permissions_provider.h b/extensions/test/test_permissions_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..95b513e9c1b15bc2e47c1059e9fd41ceb3bd9195
--- /dev/null
+++ b/extensions/test/test_permissions_provider.h
@@ -0,0 +1,28 @@
+// Copyright 2014 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 EXTENSIONS_TEST_TEST_PERMISSIONS_PROVIDER_H_
+#define EXTENSIONS_TEST_TEST_PERMISSIONS_PROVIDER_H_
+
+#include "base/macros.h"
+#include "extensions/common/permissions/permissions_provider.h"
+
+namespace extensions {
+
+class TestPermissionsProvider : public PermissionsProvider {
+ public:
+ TestPermissionsProvider();
+ virtual ~TestPermissionsProvider();
+
+ private:
+ // PermissionsProvider:
+ virtual std::vector<APIPermissionInfo*> GetAllPermissions() const OVERRIDE;
+ virtual std::vector<AliasInfo> GetAllAliases() const OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(TestPermissionsProvider);
+};
+
+} // namespace extensions
+
+#endif // EXTENSIONS_TEST_TEST_PERMISSIONS_PROVIDER_H_
« no previous file with comments | « extensions/test/test_permission_message_provider.cc ('k') | extensions/test/test_permissions_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698