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

Unified Diff: chrome/browser/android/offline_pages/prerender_adapter_unittest.cc

Issue 2098383002: Fix IsLowEndDevice check in PrerenderAdapter unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/android/offline_pages/prerender_adapter_unittest.cc
diff --git a/chrome/browser/android/offline_pages/prerender_adapter_unittest.cc b/chrome/browser/android/offline_pages/prerender_adapter_unittest.cc
index 93a8ff6b7f473a268aecca2ad3dbd6e2f688a3f7..a4d0fcaee9afc730cbb79a3b1b6693e80ee938be 100644
--- a/chrome/browser/android/offline_pages/prerender_adapter_unittest.cc
+++ b/chrome/browser/android/offline_pages/prerender_adapter_unittest.cc
@@ -196,7 +196,7 @@ void PrerenderAdapterTest::SetUp() {
TEST_F(PrerenderAdapterTest, CanPrerender) {
// Skip test on low end device until supported.
- if (!base::SysInfo::IsLowEndDevice())
+ if (base::SysInfo::IsLowEndDevice())
return;
EXPECT_TRUE(adapter()->CanPrerender());
@@ -207,7 +207,7 @@ TEST_F(PrerenderAdapterTest, CanPrerender) {
TEST_F(PrerenderAdapterTest, StartPrerenderFailsForUnsupportedScheme) {
// Skip test on low end device until supported.
- if (!base::SysInfo::IsLowEndDevice())
+ if (base::SysInfo::IsLowEndDevice())
return;
content::WebContents* session_contents = content::WebContents::Create(
@@ -224,7 +224,7 @@ TEST_F(PrerenderAdapterTest, StartPrerenderFailsForUnsupportedScheme) {
TEST_F(PrerenderAdapterTest, StartPrerenderSucceeds) {
// Skip test on low end device until supported.
- if (!base::SysInfo::IsLowEndDevice())
+ if (base::SysInfo::IsLowEndDevice())
return;
content::WebContents* session_contents = content::WebContents::Create(
« 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