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

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

Issue 2737733003: Add Active Directory login UI tests (Closed)
Patch Set: Rebase Created 3 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
OLDNEW
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 "chrome/browser/ui/webui/options/preferences_browsertest.h" 5 #include "chrome/browser/ui/webui/options/preferences_browsertest.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <iostream> 9 #include <iostream>
10 #include <memory> 10 #include <memory>
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 std::string(), false, false); 732 std::string(), false, false);
733 } 733 }
734 734
735 class ManagedPreferencesBrowserTest : public PreferencesBrowserTest { 735 class ManagedPreferencesBrowserTest : public PreferencesBrowserTest {
736 protected: 736 protected:
737 // PreferencesBrowserTest implementation: 737 // PreferencesBrowserTest implementation:
738 void SetUpInProcessBrowserTestFixture() override { 738 void SetUpInProcessBrowserTestFixture() override {
739 // Set up fake install attributes. 739 // Set up fake install attributes.
740 std::unique_ptr<chromeos::StubInstallAttributes> attributes = 740 std::unique_ptr<chromeos::StubInstallAttributes> attributes =
741 base::MakeUnique<chromeos::StubInstallAttributes>(); 741 base::MakeUnique<chromeos::StubInstallAttributes>();
742 attributes->SetEnterprise("example.com", "fake-id"); 742 attributes->SetCloudManaged("example.com", "fake-id");
743 policy::BrowserPolicyConnectorChromeOS::SetInstallAttributesForTesting( 743 policy::BrowserPolicyConnectorChromeOS::SetInstallAttributesForTesting(
744 attributes.release()); 744 attributes.release());
745 745
746 PreferencesBrowserTest::SetUpInProcessBrowserTestFixture(); 746 PreferencesBrowserTest::SetUpInProcessBrowserTestFixture();
747 } 747 }
748 }; 748 };
749 749
750 // Verifies that initializing the JavaScript Preferences class fires the correct 750 // Verifies that initializing the JavaScript Preferences class fires the correct
751 // notifications in JavaScript for pref values handled by the 751 // notifications in JavaScript for pref values handled by the
752 // CoreChromeOSOptionsHandler class for a managed device. 752 // CoreChromeOSOptionsHandler class for a managed device.
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 base::Value(3)); 1102 base::Value(3));
1103 SetProxyPref(chromeos::proxy_cros_settings_parser::kProxySocksPort, 1103 SetProxyPref(chromeos::proxy_cros_settings_parser::kProxySocksPort,
1104 base::Value(4)); 1104 base::Value(4));
1105 1105
1106 VerifyCurrentProxyServer( 1106 VerifyCurrentProxyServer(
1107 "http=a.com:1;https=4.3.2.1:2;ftp=c.com:3;socks=socks4://d.com:4", 1107 "http=a.com:1;https=4.3.2.1:2;ftp=c.com:3;socks=socks4://d.com:4",
1108 onc::ONC_SOURCE_NONE); 1108 onc::ONC_SOURCE_NONE);
1109 } 1109 }
1110 1110
1111 #endif 1111 #endif
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc ('k') | chromeos/dbus/fake_auth_policy_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698