ExtensionBuilder is a handy utility for constructing extensions in a (usually unit) test environment, since Extension::Create() is a pain. However, it only provides a SetManifest() method, which means that tests still need to construct the manifest more-or-less by hand.
We should expand ExtensionBuilder to be able to make the creation process more streamlined by adding logic for constructing simple extensions and common extension traits like permissions or actions.
Ideally, this will also help us get rid of the <n> different test extension construction methods and consolidate (most of) them to one canonical one. (or, maybe this happens: https://xkcd.com/927/ - but hopefully not!)
Comment 1 by bugdroid1@chromium.org
, Aug 18 2017