summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_unittest.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/extension_unittest.h')
-rw-r--r--chrome/common/extensions/extension_unittest.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/chrome/common/extensions/extension_unittest.h b/chrome/common/extensions/extension_unittest.h
new file mode 100644
index 0000000..99a7509
--- /dev/null
+++ b/chrome/common/extensions/extension_unittest.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2013 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 CHROME_COMMON_EXTENSIONS_EXTENSION_UNITTEST_H_
+#define CHROME_COMMON_EXTENSIONS_EXTENSION_UNITTEST_H_
+
+#include "base/compiler_specific.h"
+#include "chrome/common/extensions/permissions/scoped_testing_permissions_info.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace extensions {
+
+// A base class for extension unit tests that sets up permissions and
+// universally useful manifest handlers.
+class ExtensionTest : public testing::Test {
+ public:
+ ExtensionTest();
+
+ protected:
+ virtual void SetUp() OVERRIDE;
+
+ virtual void TearDown() OVERRIDE;
+
+ ScopedTestingPermissionsInfo permissions_info_;
+};
+
+} // namespace extensions
+
+#endif // CHROME_COMMON_EXTENSIONS_EXTENSION_UNITTEST_H_