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

Side by Side Diff: remoting/host/policy_watcher_unittest.cc

Issue 1643793002: Add policy to restrict client domain for Me2Me. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix remoting_perftests compile. Created 4 years, 10 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
« no previous file with comments | « remoting/host/policy_watcher.cc ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « remoting/host/policy_watcher.cc ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698