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

Side by Side 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, 5 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 unified diff | Download patch
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/ref_counted.h"
12
13 namespace extensions {
14 class Extension;
15 }
16
11 namespace extension_test_util { 17 namespace extension_test_util {
12 18
13 // Makes a fake extension id using the given |seed|. 19 // Makes a fake extension id using the given |seed|.
14 std::string MakeId(std::string seed); 20 std::string MakeId(std::string seed);
15 21
22 // 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.
23 // NOTE: if |id| is empty, the extension returned will always have the same id!
24 scoped_refptr<extensions::Extension> CreateExtension(std::string id);
25
16 } // namespace extension_test_util 26 } // namespace extension_test_util
17 27
18 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_TEST_UTIL_H_ 28 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698