| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" |
| 11 |
| 12 namespace extensions { |
| 13 class Extension; |
| 14 } |
| 15 |
| 10 namespace extension_test_util { | 16 namespace extension_test_util { |
| 11 | 17 |
| 12 // Makes a fake extension id using the given |seed|. | 18 // Makes a fake extension id using the given |seed|. |
| 13 std::string MakeId(std::string seed); | 19 std::string MakeId(std::string seed); |
| 14 | 20 |
| 21 // Return a very simple extension with id |id|. |
| 22 scoped_refptr<extensions::Extension> CreateExtensionWithID(std::string id); |
| 23 |
| 15 } // namespace extension_test_util | 24 } // namespace extension_test_util |
| 16 | 25 |
| 17 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_TEST_UTIL_H_ | 26 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_TEST_UTIL_H_ |
| OLD | NEW |