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

Side by Side Diff: chrome/browser/policy/policy_browsertest.cc

Issue 2477233002: Disable Flaky PolicyTest.Disable3DAPIs. (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1207 EXPECT_EQ(safe_search != 0, 1207 EXPECT_EQ(safe_search != 0,
1208 prefs->IsManagedPreference(prefs::kForceGoogleSafeSearch)); 1208 prefs->IsManagedPreference(prefs::kForceGoogleSafeSearch));
1209 EXPECT_EQ(safe_search == 1, 1209 EXPECT_EQ(safe_search == 1,
1210 prefs->GetBoolean(prefs::kForceGoogleSafeSearch)); 1210 prefs->GetBoolean(prefs::kForceGoogleSafeSearch));
1211 1211
1212 // Verify that safe search actually works. 1212 // Verify that safe search actually works.
1213 CheckSafeSearch(safe_search == 1); 1213 CheckSafeSearch(safe_search == 1);
1214 } 1214 }
1215 } 1215 }
1216 1216
1217 IN_PROC_BROWSER_TEST_F(PolicyTest, Disable3DAPIs) { 1217 // Flaky. See http://crbug.com/662693.
1218 IN_PROC_BROWSER_TEST_F(PolicyTest, DISABLED_Disable3DAPIs) {
1218 // This test assumes Gpu access. 1219 // This test assumes Gpu access.
1219 if (!content::GpuDataManager::GetInstance()->GpuAccessAllowed(NULL)) 1220 if (!content::GpuDataManager::GetInstance()->GpuAccessAllowed(NULL))
1220 return; 1221 return;
1221 1222
1222 ui_test_utils::NavigateToURL(browser(), GURL(url::kAboutBlankURL)); 1223 ui_test_utils::NavigateToURL(browser(), GURL(url::kAboutBlankURL));
1223 // WebGL is enabled by default. 1224 // WebGL is enabled by default.
1224 content::WebContents* contents = 1225 content::WebContents* contents =
1225 browser()->tab_strip_model()->GetActiveWebContents(); 1226 browser()->tab_strip_model()->GetActiveWebContents();
1226 EXPECT_TRUE(IsWebGLEnabled(contents)); 1227 EXPECT_TRUE(IsWebGLEnabled(contents));
1227 // Disable with a policy. 1228 // Disable with a policy.
(...skipping 2997 matching lines...) Expand 10 before | Expand all | Expand 10 after
4225 4226
4226 SetEmptyPolicy(); 4227 SetEmptyPolicy();
4227 // Policy not set. 4228 // Policy not set.
4228 CheckSystemTimezoneAutomaticDetectionPolicyUnset(); 4229 CheckSystemTimezoneAutomaticDetectionPolicyUnset();
4229 EXPECT_TRUE(CheckResolveTimezoneByGeolocation(true, false)); 4230 EXPECT_TRUE(CheckResolveTimezoneByGeolocation(true, false));
4230 EXPECT_TRUE(manager->TimeZoneResolverShouldBeRunningForTests()); 4231 EXPECT_TRUE(manager->TimeZoneResolverShouldBeRunningForTests());
4231 } 4232 }
4232 #endif // defined(OS_CHROMEOS) 4233 #endif // defined(OS_CHROMEOS)
4233 4234
4234 } // namespace policy 4235 } // namespace policy
OLDNEW
« 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