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/me2me_native_messaging_host.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
14 #include "base/strings/stringize_macros.h" | 14 #include "base/strings/stringize_macros.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "google_apis/gaia/gaia_oauth_client.h" | 16 #include "google_apis/gaia/gaia_oauth_client.h" |
17 #include "net/base/file_stream.h" | 17 #include "net/base/file_stream.h" |
18 #include "net/base/net_util.h" | 18 #include "net/base/net_util.h" |
19 #include "remoting/base/auto_thread_task_runner.h" | 19 #include "remoting/base/auto_thread_task_runner.h" |
| 20 #include "remoting/host/native_messaging/native_messaging_channel.h" |
20 #include "remoting/host/pin_hash.h" | 21 #include "remoting/host/pin_hash.h" |
21 #include "remoting/host/setup/native_messaging_channel.h" | |
22 #include "remoting/host/setup/test_util.h" | 22 #include "remoting/host/setup/test_util.h" |
23 #include "remoting/protocol/pairing_registry.h" | 23 #include "remoting/protocol/pairing_registry.h" |
24 #include "remoting/protocol/protocol_mock_objects.h" | 24 #include "remoting/protocol/protocol_mock_objects.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 | 26 |
27 using remoting::protocol::MockPairingRegistryDelegate; | 27 using remoting::protocol::MockPairingRegistryDelegate; |
28 using remoting::protocol::PairingRegistry; | 28 using remoting::protocol::PairingRegistry; |
29 using remoting::protocol::SynchronousPairingRegistry; | 29 using remoting::protocol::SynchronousPairingRegistry; |
30 | 30 |
31 namespace { | 31 namespace { |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 | 546 |
547 // Verify rejection if startDaemon request has no "consent" parameter. | 547 // Verify rejection if startDaemon request has no "consent" parameter. |
548 TEST_F(NativeMessagingHostTest, StartDaemonNoConsent) { | 548 TEST_F(NativeMessagingHostTest, StartDaemonNoConsent) { |
549 base::DictionaryValue message; | 549 base::DictionaryValue message; |
550 message.SetString("type", "startDaemon"); | 550 message.SetString("type", "startDaemon"); |
551 message.Set("config", base::DictionaryValue().DeepCopy()); | 551 message.Set("config", base::DictionaryValue().DeepCopy()); |
552 TestBadRequest(message); | 552 TestBadRequest(message); |
553 } | 553 } |
554 | 554 |
555 } // namespace remoting | 555 } // namespace remoting |
OLD | NEW |