summaryrefslogtreecommitdiffstats
path: root/extensions/common/test_util.cc
diff options
context:
space:
mode:
authorlimasdf <limasdf@gmail.com>2014-09-18 13:17:37 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-18 20:17:48 +0000
commitf0dcf2f802455adebc73eca469d222d18e5560f9 (patch)
treedf941f2f09e9dc519bd4e543e0da5e6890aa7c40 /extensions/common/test_util.cc
parent291fd86a7aabd22fb27409a56b34055e02ee0c62 (diff)
downloadchromium_src-f0dcf2f802455adebc73eca469d222d18e5560f9.zip
chromium_src-f0dcf2f802455adebc73eca469d222d18e5560f9.tar.gz
chromium_src-f0dcf2f802455adebc73eca469d222d18e5560f9.tar.bz2
Remove CreateEmptyExtension from extension_function_test_utils
because "extensions/common/test_util.h" has duplicate function. BUG=394840 Review URL: https://codereview.chromium.org/569493003 Cr-Commit-Position: refs/heads/master@{#295541}
Diffstat (limited to 'extensions/common/test_util.cc')
-rw-r--r--extensions/common/test_util.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/extensions/common/test_util.cc b/extensions/common/test_util.cc
index 4eacfa6..e7efeb0 100644
--- a/extensions/common/test_util.cc
+++ b/extensions/common/test_util.cc
@@ -20,15 +20,13 @@ ExtensionBuilder& BuildExtension(ExtensionBuilder& builder) {
}
scoped_refptr<Extension> CreateEmptyExtension() {
- scoped_refptr<Extension> empty_extension(
- ExtensionBuilder()
- .SetManifest(
- DictionaryBuilder().Set("name", "Test").Set("version", "1.0"))
- .Build());
- return empty_extension;
+ return ExtensionBuilder()
+ .SetManifest(
+ DictionaryBuilder().Set("name", "Test").Set("version", "1.0"))
+ .Build();
}
-scoped_refptr<Extension> CreateExtensionWithID(const std::string& id) {
+scoped_refptr<Extension> CreateEmptyExtension(const std::string& id) {
return ExtensionBuilder()
.SetManifest(
DictionaryBuilder().Set("name", "test").Set("version", "0.1"))