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

Unified Diff: chrome/browser/plugins/plugin_power_saver_browsertest.cc

Issue 2350773003: Plugin Power Saver: Fix browsertest in official builds. (Closed)
Patch Set: add comment Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugins/plugin_power_saver_browsertest.cc
diff --git a/chrome/browser/plugins/plugin_power_saver_browsertest.cc b/chrome/browser/plugins/plugin_power_saver_browsertest.cc
index b413e7985317a7a3cf4cbdba4173feba054c17cc..f84e96ceb3df89b1afac6411fc8fe0aa2f96403c 100644
--- a/chrome/browser/plugins/plugin_power_saver_browsertest.cc
+++ b/chrome/browser/plugins/plugin_power_saver_browsertest.cc
@@ -289,6 +289,12 @@ class PluginPowerSaverBrowserTest : public InProcessBrowserTest {
command_line->AppendSwitch(switches::kDisableGpu);
}
+ void SetUpInProcessBrowserTestFixture() override {
+ // Although this is redundant with the Field Trial testing configuration,
+ // the official builders don't use those, so we also enable it here.
+ feature_list.InitAndEnableFeature(features::kBlockSmallContent);
+ }
+
protected:
void LoadHTML(const std::string& html) {
if (PixelTestsEnabled()) {
@@ -403,6 +409,9 @@ class PluginPowerSaverBrowserTest : public InProcessBrowserTest {
return true;
#endif
}
+
+ private:
+ base::test::ScopedFeatureList feature_list;
};
IN_PROC_BROWSER_TEST_F(PluginPowerSaverBrowserTest, EssentialPlugins) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698