| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_TEST_UTIL_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_TEST_UTIL_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_TEST_UTIL_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_TEST_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "chrome/common/extensions/extension_builder.h" | 11 #include "chrome/common/extensions/extension_builder.h" |
| 12 #include "chrome/common/extensions/manifest.h" | 12 #include "extensions/common/manifest.h" |
| 13 | 13 |
| 14 namespace extensions { | 14 namespace extensions { |
| 15 class Extension; | 15 class Extension; |
| 16 | 16 |
| 17 // Newer functions go here. | 17 // Newer functions go here. |
| 18 // TODO(mpcomplete): migrate older functions over. | 18 // TODO(mpcomplete): migrate older functions over. |
| 19 namespace extension_test_util { | 19 namespace extension_test_util { |
| 20 | 20 |
| 21 ExtensionBuilder& BuildExtension(ExtensionBuilder& builder); | 21 ExtensionBuilder& BuildExtension(ExtensionBuilder& builder); |
| 22 ExtensionBuilder& BuildExtensionWithPermissions(ExtensionBuilder& builder, | 22 ExtensionBuilder& BuildExtensionWithPermissions(ExtensionBuilder& builder, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 scoped_refptr<extensions::Extension> LoadManifestStrict( | 60 scoped_refptr<extensions::Extension> LoadManifestStrict( |
| 61 const std::string& dir, | 61 const std::string& dir, |
| 62 const std::string& test_file); | 62 const std::string& test_file); |
| 63 | 63 |
| 64 scoped_refptr<extensions::Extension> LoadManifest(const std::string& dir, | 64 scoped_refptr<extensions::Extension> LoadManifest(const std::string& dir, |
| 65 const std::string& test_file); | 65 const std::string& test_file); |
| 66 | 66 |
| 67 } // namespace extension_test_util | 67 } // namespace extension_test_util |
| 68 | 68 |
| 69 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_TEST_UTIL_H_ | 69 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_TEST_UTIL_H_ |
| OLD | NEW |