| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "base/memory/ptr_util.h" | 5 #include "base/memory/ptr_util.h" |
| 6 #include "base/values.h" | 6 #include "base/values.h" |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 8 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 9 #include "chrome/browser/ui/webui/options/options_ui_browsertest.h" | 9 #include "chrome/browser/ui/webui/options/options_ui_browsertest.h" |
| 10 #include "components/policy/core/browser/browser_policy_connector.h" | 10 #include "components/policy/core/browser/browser_policy_connector.h" |
| 11 #include "components/policy/core/common/external_data_fetcher.h" | 11 #include "components/policy/core/common/external_data_fetcher.h" |
| 12 #include "components/policy/core/common/mock_configuration_policy_provider.h" | 12 #include "components/policy/core/common/mock_configuration_policy_provider.h" |
| 13 #include "components/policy/core/common/policy_map.h" | 13 #include "components/policy/core/common/policy_map.h" |
| 14 #include "components/policy/core/common/policy_types.h" | 14 #include "components/policy/core/common/policy_types.h" |
| 15 #include "components/policy/policy_constants.h" |
| 15 #include "content/public/browser/render_frame_host.h" | 16 #include "content/public/browser/render_frame_host.h" |
| 16 #include "content/public/browser/web_contents.h" | 17 #include "content/public/browser/web_contents.h" |
| 17 #include "content/public/test/browser_test_utils.h" | 18 #include "content/public/test/browser_test_utils.h" |
| 18 #include "content/public/test/test_utils.h" | 19 #include "content/public/test/test_utils.h" |
| 19 #include "policy/policy_constants.h" | |
| 20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 22 | 22 |
| 23 #if defined(OS_CHROMEOS) | 23 #if defined(OS_CHROMEOS) |
| 24 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h" | 24 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h" |
| 25 #include "chromeos/network/onc/onc_test_utils.h" | 25 #include "chromeos/network/onc/onc_test_utils.h" |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 using testing::Return; | 28 using testing::Return; |
| 29 using testing::_; | 29 using testing::_; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // managed setting indicator (only on Chrome OS). | 98 // managed setting indicator (only on Chrome OS). |
| 99 IN_PROC_BROWSER_TEST_F(CertificateManagerBrowserTest, | 99 IN_PROC_BROWSER_TEST_F(CertificateManagerBrowserTest, |
| 100 PolicyCertificateWithWebTrustHasIndicator) { | 100 PolicyCertificateWithWebTrustHasIndicator) { |
| 101 LoadONCPolicy("certificate-web-authority.onc"); | 101 LoadONCPolicy("certificate-web-authority.onc"); |
| 102 NavigateToSettings(); | 102 NavigateToSettings(); |
| 103 ClickElement("#certificatesManageButton"); | 103 ClickElement("#certificatesManageButton"); |
| 104 ClickElement("#ca-certs-nav-tab"); | 104 ClickElement("#ca-certs-nav-tab"); |
| 105 EXPECT_TRUE(HasElement(".cert-policy")); | 105 EXPECT_TRUE(HasElement(".cert-policy")); |
| 106 } | 106 } |
| 107 #endif | 107 #endif |
| OLD | NEW |