| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chromeos/dbus/services/proxy_resolution_service_provider.h" | 5 #include "chromeos/dbus/services/proxy_resolution_service_provider.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
| 13 #include "chromeos/dbus/services/service_provider_test_helper.h" | 13 #include "chromeos/dbus/services/service_provider_test_helper.h" |
| 14 #include "dbus/message.h" | 14 #include "dbus/message.h" |
| 15 #include "net/url_request/url_request_test_util.h" | 15 #include "net/url_request/url_request_test_util.h" |
| 16 #include "third_party/cros_system_api/dbus/service_constants.h" | 16 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 17 | 17 |
| 18 namespace chromeos { | 18 namespace chromeos { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 // ProxyResolutionServiceProvider will return the proxy info as a D-Bus | 22 // ProxyResolutionServiceProvider will return the proxy info as a D-Bus |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 dbus::MessageReader reader(response.get()); | 125 dbus::MessageReader reader(response.get()); |
| 126 EXPECT_FALSE(reader.HasMoreData()); | 126 EXPECT_FALSE(reader.HasMoreData()); |
| 127 | 127 |
| 128 // Confirm that the signal is received successfully. | 128 // Confirm that the signal is received successfully. |
| 129 EXPECT_EQ(kSourceURL, source_url_); | 129 EXPECT_EQ(kSourceURL, source_url_); |
| 130 EXPECT_EQ("DIRECT", proxy_info_); | 130 EXPECT_EQ("DIRECT", proxy_info_); |
| 131 EXPECT_EQ("", error_message_); | 131 EXPECT_EQ("", error_message_); |
| 132 } | 132 } |
| 133 | 133 |
| 134 } // namespace chromeos | 134 } // namespace chromeos |
| OLD | NEW |