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

Side by Side Diff: chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc

Issue 2737983002: WebGL feature will only enabled when accelerated (Closed)
Patch Set: Formatting fix Created 3 years, 9 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 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 <vector> 5 #include <vector>
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 // Tests getWebGLStatus function when WebGL is blacklisted. 415 // Tests getWebGLStatus function when WebGL is blacklisted.
416 IN_PROC_BROWSER_TEST_F(ExtensionWebstoreGetWebGLStatusTest, Blocked) { 416 IN_PROC_BROWSER_TEST_F(ExtensionWebstoreGetWebGLStatusTest, Blocked) {
417 static const std::string json_blacklist = 417 static const std::string json_blacklist =
418 "{\n" 418 "{\n"
419 " \"name\": \"gpu blacklist\",\n" 419 " \"name\": \"gpu blacklist\",\n"
420 " \"version\": \"1.0\",\n" 420 " \"version\": \"1.0\",\n"
421 " \"entries\": [\n" 421 " \"entries\": [\n"
422 " {\n" 422 " {\n"
423 " \"id\": 1,\n" 423 " \"id\": 1,\n"
424 " \"features\": [\n" 424 " \"features\": [\n"
425 " \"webgl\"\n" 425 " \"accelerated_webgl\"\n"
426 " ]\n" 426 " ]\n"
427 " }\n" 427 " }\n"
428 " ]\n" 428 " ]\n"
429 "}"; 429 "}";
430 gpu::GPUInfo gpu_info; 430 gpu::GPUInfo gpu_info;
431 content::GpuDataManager::GetInstance()->InitializeForTesting( 431 content::GpuDataManager::GetInstance()->InitializeForTesting(
432 json_blacklist, gpu_info); 432 json_blacklist, gpu_info);
433 EXPECT_TRUE(content::GpuDataManager::GetInstance()->IsFeatureBlacklisted( 433 EXPECT_TRUE(content::GpuDataManager::GetInstance()->IsFeatureBlacklisted(
434 gpu::GPU_FEATURE_TYPE_WEBGL)); 434 gpu::GPU_FEATURE_TYPE_ACCELERATED_WEBGL));
435 435
436 bool webgl_allowed = false; 436 bool webgl_allowed = false;
437 RunTest(webgl_allowed); 437 RunTest(webgl_allowed);
438 } 438 }
439 439
440 } // namespace extensions 440 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698