| OLD | NEW |
| 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 1663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1674 } | 1674 } |
| 1675 | 1675 |
| 1676 IN_PROC_BROWSER_TEST_F(PolicyTest, ExtensionInstallBlacklistSharedModules) { | 1676 IN_PROC_BROWSER_TEST_F(PolicyTest, ExtensionInstallBlacklistSharedModules) { |
| 1677 // Verifies that shared_modules are not affected by the blacklist. | 1677 // Verifies that shared_modules are not affected by the blacklist. |
| 1678 | 1678 |
| 1679 const char kImporterId[] = "pchakhniekfaeoddkifplhnfbffomabh"; | 1679 const char kImporterId[] = "pchakhniekfaeoddkifplhnfbffomabh"; |
| 1680 const char kSharedModuleId[] = "nfgclafboonjbiafbllihiailjlhelpm"; | 1680 const char kSharedModuleId[] = "nfgclafboonjbiafbllihiailjlhelpm"; |
| 1681 | 1681 |
| 1682 // Make sure that "import" and "export" are available to these extension IDs | 1682 // Make sure that "import" and "export" are available to these extension IDs |
| 1683 // by mocking the release channel. | 1683 // by mocking the release channel. |
| 1684 extensions::ScopedCurrentChannel channel(chrome::VersionInfo::CHANNEL_DEV); | 1684 extensions::ScopedCurrentChannel channel(version_info::Channel::DEV); |
| 1685 | 1685 |
| 1686 // Verify that the extensions are not installed initially. | 1686 // Verify that the extensions are not installed initially. |
| 1687 ExtensionService* service = extension_service(); | 1687 ExtensionService* service = extension_service(); |
| 1688 ASSERT_FALSE(service->GetExtensionById(kImporterId, true)); | 1688 ASSERT_FALSE(service->GetExtensionById(kImporterId, true)); |
| 1689 ASSERT_FALSE(service->GetExtensionById(kSharedModuleId, true)); | 1689 ASSERT_FALSE(service->GetExtensionById(kSharedModuleId, true)); |
| 1690 | 1690 |
| 1691 // Mock the webstore update URL. This is where the shared module extension | 1691 // Mock the webstore update URL. This is where the shared module extension |
| 1692 // will be installed from. | 1692 // will be installed from. |
| 1693 base::FilePath update_xml_path = base::FilePath(kTestExtensionsDir) | 1693 base::FilePath update_xml_path = base::FilePath(kTestExtensionsDir) |
| 1694 .AppendASCII("policy_shared_module") | 1694 .AppendASCII("policy_shared_module") |
| (...skipping 2165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3860 | 3860 |
| 3861 IN_PROC_BROWSER_TEST_F(HardwareAccelerationModePolicyTest, | 3861 IN_PROC_BROWSER_TEST_F(HardwareAccelerationModePolicyTest, |
| 3862 HardwareAccelerationDisabled) { | 3862 HardwareAccelerationDisabled) { |
| 3863 // Verifies that hardware acceleration can be disabled with policy. | 3863 // Verifies that hardware acceleration can be disabled with policy. |
| 3864 EXPECT_FALSE( | 3864 EXPECT_FALSE( |
| 3865 content::GpuDataManager::GetInstance()->GpuAccessAllowed(nullptr)); | 3865 content::GpuDataManager::GetInstance()->GpuAccessAllowed(nullptr)); |
| 3866 } | 3866 } |
| 3867 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 3867 #endif // !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
| 3868 | 3868 |
| 3869 } // namespace policy | 3869 } // namespace policy |
| OLD | NEW |