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

Unified Diff: chrome/common/extensions/extension_test_util.h

Issue 10694056: CPM Extension Uninstall Watching (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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
Index: chrome/common/extensions/extension_test_util.h
diff --git a/chrome/common/extensions/extension_test_util.h b/chrome/common/extensions/extension_test_util.h
index 77c47e5449cbba10fb16fa4e61d09911a88bfb9c..e993b3d36634d878624bd25e097d562b45656945 100644
--- a/chrome/common/extensions/extension_test_util.h
+++ b/chrome/common/extensions/extension_test_util.h
@@ -8,11 +8,21 @@
#include <string>
+#include "base/memory/ref_counted.h"
+
+namespace extensions {
+class Extension;
+}
+
namespace extension_test_util {
// Makes a fake extension id using the given |seed|.
std::string MakeId(std::string seed);
+// Return a very simple extension; |id| can be empty if the id is not important.
Yoyo Zhou 2012/07/09 17:06:37 I can't see why the empty id case would be necessa
Devlin 2012/07/09 20:48:26 Done.
+// NOTE: if |id| is empty, the extension returned will always have the same id!
+scoped_refptr<extensions::Extension> CreateExtension(std::string id);
+
} // namespace extension_test_util
#endif // CHROME_COMMON_EXTENSIONS_EXTENSION_TEST_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698