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

Side by Side Diff: chrome/browser/extensions/extension_service_unittest.cc

Issue 12976004: Generalzie GpuBlacklist to GpuControlList. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "chrome/browser/extensions/extension_service_unittest.h" 5 #include "chrome/browser/extensions/extension_service_unittest.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 }; 775 };
776 776
777 void BlackListWebGL() { 777 void BlackListWebGL() {
778 static const std::string json_blacklist = 778 static const std::string json_blacklist =
779 "{\n" 779 "{\n"
780 " \"name\": \"gpu blacklist\",\n" 780 " \"name\": \"gpu blacklist\",\n"
781 " \"version\": \"1.0\",\n" 781 " \"version\": \"1.0\",\n"
782 " \"entries\": [\n" 782 " \"entries\": [\n"
783 " {\n" 783 " {\n"
784 " \"id\": 1,\n" 784 " \"id\": 1,\n"
785 " \"blacklist\": [\"webgl\"]\n" 785 " \"features\": [\"webgl\"]\n"
786 " }\n" 786 " }\n"
787 " ]\n" 787 " ]\n"
788 "}"; 788 "}";
789 content::GPUInfo gpu_info; 789 content::GPUInfo gpu_info;
790 content::GpuDataManager::GetInstance()->InitializeForTesting( 790 content::GpuDataManager::GetInstance()->InitializeForTesting(
791 json_blacklist, gpu_info); 791 json_blacklist, gpu_info);
792 } 792 }
793 793
794 void UpdateExtension(const std::string& id, const base::FilePath& in_path, 794 void UpdateExtension(const std::string& id, const base::FilePath& in_path,
795 UpdateState expected_state) { 795 UpdateState expected_state) {
(...skipping 5097 matching lines...) Expand 10 before | Expand all | Expand 10 after
5893 EXPECT_FALSE(extensions::HasExternalInstallError(service_)); 5893 EXPECT_FALSE(extensions::HasExternalInstallError(service_));
5894 EXPECT_FALSE(service_->IsExtensionEnabled(good_crx)); 5894 EXPECT_FALSE(service_->IsExtensionEnabled(good_crx));
5895 EXPECT_TRUE(service_->IsExtensionEnabled(page_action)); 5895 EXPECT_TRUE(service_->IsExtensionEnabled(page_action));
5896 5896
5897 ExtensionPrefs* prefs = service_->extension_prefs(); 5897 ExtensionPrefs* prefs = service_->extension_prefs();
5898 EXPECT_NE(0, prefs->GetDisableReasons(good_crx) & 5898 EXPECT_NE(0, prefs->GetDisableReasons(good_crx) &
5899 Extension::DISABLE_SIDELOAD_WIPEOUT); 5899 Extension::DISABLE_SIDELOAD_WIPEOUT);
5900 EXPECT_EQ(0, prefs->GetDisableReasons(page_action) & 5900 EXPECT_EQ(0, prefs->GetDisableReasons(page_action) &
5901 Extension::DISABLE_SIDELOAD_WIPEOUT); 5901 Extension::DISABLE_SIDELOAD_WIPEOUT);
5902 } 5902 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698