| 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 #include "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/json/json_writer.h" | 6 #include "base/json/json_writer.h" |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 base::DictionaryValue talk_gadget_blah_; | 235 base::DictionaryValue talk_gadget_blah_; |
| 236 base::DictionaryValue third_party_auth_full_; | 236 base::DictionaryValue third_party_auth_full_; |
| 237 base::DictionaryValue third_party_auth_partial_; | 237 base::DictionaryValue third_party_auth_partial_; |
| 238 base::DictionaryValue third_party_auth_cert_empty_; | 238 base::DictionaryValue third_party_auth_cert_empty_; |
| 239 | 239 |
| 240 private: | 240 private: |
| 241 void SetDefaults(base::DictionaryValue& dict) { | 241 void SetDefaults(base::DictionaryValue& dict) { |
| 242 dict.SetBoolean(key::kRemoteAccessHostFirewallTraversal, true); | 242 dict.SetBoolean(key::kRemoteAccessHostFirewallTraversal, true); |
| 243 dict.SetBoolean(key::kRemoteAccessHostAllowRelayedConnection, true); | 243 dict.SetBoolean(key::kRemoteAccessHostAllowRelayedConnection, true); |
| 244 dict.SetString(key::kRemoteAccessHostUdpPortRange, ""); | 244 dict.SetString(key::kRemoteAccessHostUdpPortRange, ""); |
| 245 dict.SetString(key::kRemoteAccessHostClientDomain, std::string()); |
| 245 dict.SetString(key::kRemoteAccessHostDomain, std::string()); | 246 dict.SetString(key::kRemoteAccessHostDomain, std::string()); |
| 246 dict.SetBoolean(key::kRemoteAccessHostMatchUsername, false); | 247 dict.SetBoolean(key::kRemoteAccessHostMatchUsername, false); |
| 247 dict.SetString(key::kRemoteAccessHostTalkGadgetPrefix, | 248 dict.SetString(key::kRemoteAccessHostTalkGadgetPrefix, |
| 248 kDefaultHostTalkGadgetPrefix); | 249 kDefaultHostTalkGadgetPrefix); |
| 249 dict.SetBoolean(key::kRemoteAccessHostRequireCurtain, false); | 250 dict.SetBoolean(key::kRemoteAccessHostRequireCurtain, false); |
| 250 dict.SetString(key::kRemoteAccessHostTokenUrl, ""); | 251 dict.SetString(key::kRemoteAccessHostTokenUrl, ""); |
| 251 dict.SetString(key::kRemoteAccessHostTokenValidationUrl, ""); | 252 dict.SetString(key::kRemoteAccessHostTokenValidationUrl, ""); |
| 252 dict.SetString(key::kRemoteAccessHostTokenValidationCertificateIssuer, ""); | 253 dict.SetString(key::kRemoteAccessHostTokenValidationCertificateIssuer, ""); |
| 253 dict.SetBoolean(key::kRemoteAccessHostAllowClientPairing, true); | 254 dict.SetBoolean(key::kRemoteAccessHostAllowClientPairing, true); |
| 254 dict.SetBoolean(key::kRemoteAccessHostAllowGnubbyAuth, true); | 255 dict.SetBoolean(key::kRemoteAccessHostAllowGnubbyAuth, true); |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 } | 710 } |
| 710 | 711 |
| 711 // Today, the only verification offered by this test is: | 712 // Today, the only verification offered by this test is: |
| 712 // - Manual verification of policy values dumped by OnPolicyUpdatedDumpPolicy | 713 // - Manual verification of policy values dumped by OnPolicyUpdatedDumpPolicy |
| 713 // - Automated verification that nothing crashed | 714 // - Automated verification that nothing crashed |
| 714 } | 715 } |
| 715 | 716 |
| 716 #endif | 717 #endif |
| 717 | 718 |
| 718 } // namespace remoting | 719 } // namespace remoting |
| OLD | NEW |