Commit 08c1dd02 authored by Devlin Cronin's avatar Devlin Cronin Committed by Commit Bot

[Extensions] Update notification system observer test to use manifest v2

Update notification_system_observer_unittest.cc to generate
extensions with manifest_version 2.

Bug: 816679
Change-Id: Ida57ff94738d3ec7fcfb207b8495d7a31d784a94
Reviewed-on: https://chromium-review.googlesource.com/1008607Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#549990}
parent 7f77fe73
...@@ -19,13 +19,7 @@ ...@@ -19,13 +19,7 @@
namespace { namespace {
scoped_refptr<const extensions::Extension> CreateGoodExtension( scoped_refptr<const extensions::Extension> CreateGoodExtension(
const std::string& name) { const std::string& name) {
return extensions::ExtensionBuilder() return extensions::ExtensionBuilder(name).Build();
.SetManifest(extensions::DictionaryBuilder()
.Set("name", name)
.Set("version", "1.0")
.Build())
.SetID(crx_file::id_util::GenerateId(name))
.Build();
} }
} // namespace } // namespace
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment