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

Side by Side Diff: chromeos/dbus/services/proxy_resolution_service_provider_unittest.cc

Issue 743623002: Move ProxyResolutionServiceProvider to chromeos/dbus/services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « chromeos/dbus/services/proxy_resolution_service_provider.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // This test is relatively complicated. Here's the summary of what it does: 5 // This test is relatively complicated. Here's the summary of what it does:
6 // 6 //
7 // - Set up mock D-Bus related objects to mock out D-Bus calls. 7 // - Set up mock D-Bus related objects to mock out D-Bus calls.
8 // - Set up a mock proxy resolver to mock out the proxy resolution. 8 // - Set up a mock proxy resolver to mock out the proxy resolution.
9 // - Create ProxyResolutionServiceProvider by injecting the mocks 9 // - Create ProxyResolutionServiceProvider by injecting the mocks
10 // - Start the service provider. 10 // - Start the service provider.
11 // - Request ProxyResolutionServiceProvider to resolve proxy for kSourceURL. 11 // - Request ProxyResolutionServiceProvider to resolve proxy for kSourceURL.
12 // - ProxyResolutionServiceProvider will return the result as a signal. 12 // - ProxyResolutionServiceProvider will return the result as a signal.
13 // - Confirm that we receive the signal and check the contents of the signal. 13 // - Confirm that we receive the signal and check the contents of the signal.
14 14
15 #include "chrome/browser/chromeos/dbus/proxy_resolution_service_provider.h" 15 #include "chromeos/dbus/services/proxy_resolution_service_provider.h"
16 16
17 #include "base/bind.h" 17 #include "base/bind.h"
18 #include "chromeos/dbus/services/service_provider_test_helper.h" 18 #include "chromeos/dbus/services/service_provider_test_helper.h"
19 #include "dbus/message.h" 19 #include "dbus/message.h"
20 #include "dbus/mock_exported_object.h" 20 #include "dbus/mock_exported_object.h"
21 #include "third_party/cros_system_api/dbus/service_constants.h" 21 #include "third_party/cros_system_api/dbus/service_constants.h"
22 22
23 using ::testing::_; 23 using ::testing::_;
24 24
25 namespace chromeos { 25 namespace chromeos {
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 ASSERT_TRUE(response.get()); 170 ASSERT_TRUE(response.get());
171 dbus::MessageReader reader(response.get()); 171 dbus::MessageReader reader(response.get());
172 ASSERT_FALSE(reader.HasMoreData()); 172 ASSERT_FALSE(reader.HasMoreData());
173 173
174 // Confirm that the signal is received successfully. 174 // Confirm that the signal is received successfully.
175 // The contents of the signal are checked in OnSignalReceived(). 175 // The contents of the signal are checked in OnSignalReceived().
176 ASSERT_TRUE(signal_received_successfully_); 176 ASSERT_TRUE(signal_received_successfully_);
177 } 177 }
178 178
179 } // namespace chromeos 179 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/services/proxy_resolution_service_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698