diff options
Diffstat (limited to 'chrome/browser/extensions/extension_install_prompt_unittest.cc')
-rw-r--r-- | chrome/browser/extensions/extension_install_prompt_unittest.cc | 52 |
1 files changed, 27 insertions, 25 deletions
diff --git a/chrome/browser/extensions/extension_install_prompt_unittest.cc b/chrome/browser/extensions/extension_install_prompt_unittest.cc index 0b53071..64b095a 100644 --- a/chrome/browser/extensions/extension_install_prompt_unittest.cc +++ b/chrome/browser/extensions/extension_install_prompt_unittest.cc @@ -103,11 +103,12 @@ TEST_F(ExtensionInstallPromptUnitTest, PromptShowsPermissionWarnings) { URLPatternSet(), URLPatternSet())); scoped_refptr<const Extension> extension = ExtensionBuilder() - .SetManifest(std::move(DictionaryBuilder() - .Set("name", "foo") - .Set("version", "1.0") - .Set("manifest_version", 2) - .Set("description", "Random Ext"))) + .SetManifest(DictionaryBuilder() + .Set("name", "foo") + .Set("version", "1.0") + .Set("manifest_version", 2) + .Set("description", "Random Ext") + .Build()) .Build(); content::TestWebContentsFactory factory; @@ -132,16 +133,17 @@ TEST_F(ExtensionInstallPromptUnitTest, PromptShowsWithheldPermissions) { scoped_refptr<const Extension> extension = ExtensionBuilder() .SetManifest( - std::move(DictionaryBuilder() - .Set("name", "foo") - .Set("version", "1.0") - .Set("manifest_version", 2) - .Set("description", "Random Ext") - .Set("permissions", - std::move(ListBuilder() - .Append("http://*/*") - .Append("http://www.google.com/") - .Append("tabs"))))) + DictionaryBuilder() + .Set("name", "foo") + .Set("version", "1.0") + .Set("manifest_version", 2) + .Set("description", "Random Ext") + .Set("permissions", ListBuilder() + .Append("http://*/*") + .Append("http://www.google.com/") + .Append("tabs") + .Build()) + .Build()) .Build(); content::TestWebContentsFactory factory; @@ -162,16 +164,16 @@ TEST_F(ExtensionInstallPromptUnitTest, DelegatedPromptShowsOptionalPermissions) { scoped_refptr<const Extension> extension = ExtensionBuilder() - .SetManifest(std::move( - DictionaryBuilder() - .Set("name", "foo") - .Set("version", "1.0") - .Set("manifest_version", 2) - .Set("description", "Random Ext") - .Set("permissions", - std::move(ListBuilder().Append("clipboardRead"))) - .Set("optional_permissions", - std::move(ListBuilder().Append("tabs"))))) + .SetManifest(DictionaryBuilder() + .Set("name", "foo") + .Set("version", "1.0") + .Set("manifest_version", 2) + .Set("description", "Random Ext") + .Set("permissions", + ListBuilder().Append("clipboardRead").Build()) + .Set("optional_permissions", + ListBuilder().Append("tabs").Build()) + .Build()) .Build(); content::TestWebContentsFactory factory; |