OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/resolve_proxy_msg_helper.h" | 5 #include "content/browser/resolve_proxy_msg_helper.h" |
6 | 6 |
7 #include "content/common/child_process_messages.h" | 7 #include "content/common/child_process_messages.h" |
8 #include "ipc/ipc_test_sink.h" | 8 #include "ipc/ipc_test_sink.h" |
9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
10 #include "net/proxy/mock_proxy_resolver.h" | 10 #include "net/proxy/mock_proxy_resolver.h" |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 // the requests which are outstanding. | 225 // the requests which are outstanding. |
226 helper_ = NULL; | 226 helper_ = NULL; |
227 | 227 |
228 // The pending requests sent to the proxy resolver should have been cancelled. | 228 // The pending requests sent to the proxy resolver should have been cancelled. |
229 | 229 |
230 EXPECT_EQ(0u, resolver_->pending_requests().size()); | 230 EXPECT_EQ(0u, resolver_->pending_requests().size()); |
231 | 231 |
232 EXPECT_TRUE(pending_result() == NULL); | 232 EXPECT_TRUE(pending_result() == NULL); |
233 | 233 |
234 // It should also be the case that msg1, msg2, msg3 were deleted by the | 234 // It should also be the case that msg1, msg2, msg3 were deleted by the |
235 // cancellation. (Else will show up as a leak in Purify/Valgrind). | 235 // cancellation. (Else will show up as a leak in Valgrind). |
236 } | 236 } |
OLD | NEW |