| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // Warning: this file will not be compiled for ChromeOS because the test | 5 // Warning: this file will not be compiled for ChromeOS because the test |
| 6 // PolicyMakeDefaultBrowserTest is not valid for this platform. | 6 // PolicyMakeDefaultBrowserTest is not valid for this platform. |
| 7 | 7 |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/macros.h" |
| 9 #include "chrome/common/chrome_result_codes.h" | 10 #include "chrome/common/chrome_result_codes.h" |
| 10 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
| 11 #include "chrome/test/base/in_process_browser_test.h" | 12 #include "chrome/test/base/in_process_browser_test.h" |
| 12 #include "components/policy/core/browser/browser_policy_connector.h" | 13 #include "components/policy/core/browser/browser_policy_connector.h" |
| 13 #include "components/policy/core/common/mock_configuration_policy_provider.h" | 14 #include "components/policy/core/common/mock_configuration_policy_provider.h" |
| 14 #include "components/policy/core/common/policy_map.h" | 15 #include "components/policy/core/common/policy_map.h" |
| 15 #include "components/policy/core/common/policy_types.h" | 16 #include "components/policy/core/common/policy_types.h" |
| 16 #include "policy/policy_constants.h" | 17 #include "policy/policy_constants.h" |
| 17 | 18 |
| 18 class PolicyMakeDefaultBrowserTest : public InProcessBrowserTest { | 19 class PolicyMakeDefaultBrowserTest : public InProcessBrowserTest { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 39 provider_.UpdateChromePolicy(values); | 40 provider_.UpdateChromePolicy(values); |
| 40 } | 41 } |
| 41 | 42 |
| 42 private: | 43 private: |
| 43 policy::MockConfigurationPolicyProvider provider_; | 44 policy::MockConfigurationPolicyProvider provider_; |
| 44 DISALLOW_COPY_AND_ASSIGN(PolicyMakeDefaultBrowserTest); | 45 DISALLOW_COPY_AND_ASSIGN(PolicyMakeDefaultBrowserTest); |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 IN_PROC_BROWSER_TEST_F(PolicyMakeDefaultBrowserTest, MakeDefaultDisabled) { | 48 IN_PROC_BROWSER_TEST_F(PolicyMakeDefaultBrowserTest, MakeDefaultDisabled) { |
| 48 } | 49 } |
| OLD | NEW |