| OLD | NEW |
| 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 "remoting/host/setup/native_messaging_host.h" | 5 #include "remoting/host/setup/native_messaging_host.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
| 9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
| 13 #include "base/strings/stringize_macros.h" | 13 #include "base/strings/stringize_macros.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "net/base/file_stream.h" | 15 #include "net/base/file_stream.h" |
| 16 #include "net/base/net_util.h" | 16 #include "net/base/net_util.h" |
| 17 #include "remoting/host/pin_hash.h" | 17 #include "remoting/host/pin_hash.h" |
| 18 #include "remoting/host/setup/test_util.h" | 18 #include "remoting/host/setup/test_util.h" |
| 19 #include "remoting/protocol/pairing_registry.h" | 19 #include "remoting/protocol/pairing_registry.h" |
| 20 #include "remoting/protocol/protocol_mock_objects.h" | 20 #include "remoting/protocol/protocol_mock_objects.h" |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 | 514 |
| 515 // Verify rejection if startDaemon request has no "consent" parameter. | 515 // Verify rejection if startDaemon request has no "consent" parameter. |
| 516 TEST_F(NativeMessagingHostTest, StartDaemonNoConsent) { | 516 TEST_F(NativeMessagingHostTest, StartDaemonNoConsent) { |
| 517 base::DictionaryValue message; | 517 base::DictionaryValue message; |
| 518 message.SetString("type", "startDaemon"); | 518 message.SetString("type", "startDaemon"); |
| 519 message.Set("config", base::DictionaryValue().DeepCopy()); | 519 message.Set("config", base::DictionaryValue().DeepCopy()); |
| 520 TestBadRequest(message); | 520 TestBadRequest(message); |
| 521 } | 521 } |
| 522 | 522 |
| 523 } // namespace remoting | 523 } // namespace remoting |
| OLD | NEW |