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

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

Issue 2482053002: Remove a DCHECK in GpuChannelMessageFilter (Closed)
Patch Set: +AwContentsTest 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
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 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 EXPECT_EQ(safe_search != 0, 1208 EXPECT_EQ(safe_search != 0,
1209 prefs->IsManagedPreference(prefs::kForceGoogleSafeSearch)); 1209 prefs->IsManagedPreference(prefs::kForceGoogleSafeSearch));
1210 EXPECT_EQ(safe_search == 1, 1210 EXPECT_EQ(safe_search == 1,
1211 prefs->GetBoolean(prefs::kForceGoogleSafeSearch)); 1211 prefs->GetBoolean(prefs::kForceGoogleSafeSearch));
1212 1212
1213 // Verify that safe search actually works. 1213 // Verify that safe search actually works.
1214 CheckSafeSearch(safe_search == 1); 1214 CheckSafeSearch(safe_search == 1);
1215 } 1215 }
1216 } 1216 }
1217 1217
1218 // Flaky. See http://crbug.com/662693. 1218 IN_PROC_BROWSER_TEST_F(PolicyTest, Disable3DAPIs) {
1219 IN_PROC_BROWSER_TEST_F(PolicyTest, DISABLED_Disable3DAPIs) {
1220 // This test assumes Gpu access. 1219 // This test assumes Gpu access.
1221 if (!content::GpuDataManager::GetInstance()->GpuAccessAllowed(NULL)) 1220 if (!content::GpuDataManager::GetInstance()->GpuAccessAllowed(NULL))
1222 return; 1221 return;
1223 1222
1224 ui_test_utils::NavigateToURL(browser(), GURL(url::kAboutBlankURL)); 1223 ui_test_utils::NavigateToURL(browser(), GURL(url::kAboutBlankURL));
1225 // WebGL is enabled by default. 1224 // WebGL is enabled by default.
1226 content::WebContents* contents = 1225 content::WebContents* contents =
1227 browser()->tab_strip_model()->GetActiveWebContents(); 1226 browser()->tab_strip_model()->GetActiveWebContents();
1228 EXPECT_TRUE(IsWebGLEnabled(contents)); 1227 EXPECT_TRUE(IsWebGLEnabled(contents));
1229 // Disable with a policy. 1228 // Disable with a policy.
(...skipping 2998 matching lines...) Expand 10 before | Expand all | Expand 10 after
4228 4227
4229 SetEmptyPolicy(); 4228 SetEmptyPolicy();
4230 // Policy not set. 4229 // Policy not set.
4231 CheckSystemTimezoneAutomaticDetectionPolicyUnset(); 4230 CheckSystemTimezoneAutomaticDetectionPolicyUnset();
4232 EXPECT_TRUE(CheckResolveTimezoneByGeolocation(true, false)); 4231 EXPECT_TRUE(CheckResolveTimezoneByGeolocation(true, false));
4233 EXPECT_TRUE(manager->TimeZoneResolverShouldBeRunningForTests()); 4232 EXPECT_TRUE(manager->TimeZoneResolverShouldBeRunningForTests());
4234 } 4233 }
4235 #endif // defined(OS_CHROMEOS) 4234 #endif // defined(OS_CHROMEOS)
4236 4235
4237 } // namespace policy 4236 } // namespace policy
OLDNEW
« no previous file with comments | « android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java ('k') | gpu/ipc/service/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698