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

Side by Side Diff: chrome/browser/ui/webui/options/certificate_manager_browsertest.cc

Issue 99333002: Revert of Move ConfigurationPolicyProvider, etc. to components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 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/callback.h" 5 #include "base/callback.h"
6 #include "base/values.h" 6 #include "base/values.h"
7 #include "chrome/browser/browser_process.h" 7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/policy/browser_policy_connector.h" 8 #include "chrome/browser/policy/browser_policy_connector.h"
9 #include "chrome/browser/policy/mock_configuration_policy_provider.h"
9 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/tabs/tab_strip_model.h" 11 #include "chrome/browser/ui/tabs/tab_strip_model.h"
11 #include "chrome/browser/ui/webui/options/options_ui_browsertest.h" 12 #include "chrome/browser/ui/webui/options/options_ui_browsertest.h"
12 #include "components/policy/core/common/external_data_fetcher.h" 13 #include "components/policy/core/common/external_data_fetcher.h"
13 #include "components/policy/core/common/mock_configuration_policy_provider.h"
14 #include "components/policy/core/common/policy_map.h" 14 #include "components/policy/core/common/policy_map.h"
15 #include "components/policy/core/common/policy_types.h" 15 #include "components/policy/core/common/policy_types.h"
16 #include "content/public/browser/web_contents.h" 16 #include "content/public/browser/web_contents.h"
17 #include "content/public/test/browser_test_utils.h" 17 #include "content/public/test/browser_test_utils.h"
18 #include "content/public/test/test_utils.h" 18 #include "content/public/test/test_utils.h"
19 #include "policy/policy_constants.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)
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // managed setting indicator (only on Chrome OS). 108 // managed setting indicator (only on Chrome OS).
109 IN_PROC_BROWSER_TEST_F(CertificateManagerBrowserTest, 109 IN_PROC_BROWSER_TEST_F(CertificateManagerBrowserTest,
110 PolicyCertificateWithWebTrustHasIndicator) { 110 PolicyCertificateWithWebTrustHasIndicator) {
111 LoadONCPolicy("certificate-web-authority.onc"); 111 LoadONCPolicy("certificate-web-authority.onc");
112 NavigateToSettings(); 112 NavigateToSettings();
113 ClickElement("#certificatesManageButton"); 113 ClickElement("#certificatesManageButton");
114 ClickElement("#ca-certs-nav-tab"); 114 ClickElement("#ca-certs-nav-tab");
115 EXPECT_TRUE(HasElement(".cert-policy")); 115 EXPECT_TRUE(HasElement(".cert-policy"));
116 } 116 }
117 #endif 117 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698