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

Side by Side Diff: chrome/browser/chromeos/login/saml/saml_browsertest.cc

Issue 2666093002: Remove base::FundamentalValue (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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <cstring> 5 #include <cstring>
6 #include <memory> 6 #include <memory>
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
1056 ->GetShillManagerClient() 1056 ->GetShillManagerClient()
1057 ->GetTestInterface() 1057 ->GetTestInterface()
1058 ->SetupDefaultEnvironment(); 1058 ->SetupDefaultEnvironment();
1059 } 1059 }
1060 1060
1061 void SAMLPolicyTest::SetSAMLOfflineSigninTimeLimitPolicy(int limit) { 1061 void SAMLPolicyTest::SetSAMLOfflineSigninTimeLimitPolicy(int limit) {
1062 policy::PolicyMap user_policy; 1062 policy::PolicyMap user_policy;
1063 user_policy.Set(policy::key::kSAMLOfflineSigninTimeLimit, 1063 user_policy.Set(policy::key::kSAMLOfflineSigninTimeLimit,
1064 policy::POLICY_LEVEL_MANDATORY, policy::POLICY_SCOPE_USER, 1064 policy::POLICY_LEVEL_MANDATORY, policy::POLICY_SCOPE_USER,
1065 policy::POLICY_SOURCE_CLOUD, 1065 policy::POLICY_SOURCE_CLOUD,
1066 base::MakeUnique<base::FundamentalValue>(limit), nullptr); 1066 base::MakeUnique<base::Value>(limit), nullptr);
1067 provider_.UpdateChromePolicy(user_policy); 1067 provider_.UpdateChromePolicy(user_policy);
1068 base::RunLoop().RunUntilIdle(); 1068 base::RunLoop().RunUntilIdle();
1069 } 1069 }
1070 1070
1071 void SAMLPolicyTest::EnableTransferSAMLCookiesPolicy() { 1071 void SAMLPolicyTest::EnableTransferSAMLCookiesPolicy() {
1072 em::ChromeDeviceSettingsProto& proto(device_policy_->payload()); 1072 em::ChromeDeviceSettingsProto& proto(device_policy_->payload());
1073 proto.mutable_saml_settings()->set_transfer_saml_cookies(true); 1073 proto.mutable_saml_settings()->set_transfer_saml_cookies(true);
1074 1074
1075 base::RunLoop run_loop; 1075 base::RunLoop run_loop;
1076 std::unique_ptr<CrosSettings::ObserverSubscription> observer = 1076 std::unique_ptr<CrosSettings::ObserverSubscription> observer =
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1479 url3, url3, CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, std::string(), 1479 url3, url3, CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, std::string(),
1480 CONTENT_SETTING_ALLOW); 1480 CONTENT_SETTING_ALLOW);
1481 1481
1482 MediaPermission permission(CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, url3, 1482 MediaPermission permission(CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, url3,
1483 url3, profile, web_contents); 1483 url3, profile, web_contents);
1484 EXPECT_EQ(CONTENT_SETTING_BLOCK, permission.GetPermissionStatus(&reason)); 1484 EXPECT_EQ(CONTENT_SETTING_BLOCK, permission.GetPermissionStatus(&reason));
1485 } 1485 }
1486 } 1486 }
1487 1487
1488 } // namespace chromeos 1488 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698