OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/loader/test_url_loader_client.h" | 5 #include "content/public/test/test_url_loader_client.h" |
6 | 6 |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 TestURLLoaderClient::TestURLLoaderClient() : binding_(this) {} | 13 TestURLLoaderClient::TestURLLoaderClient() : binding_(this) {} |
14 TestURLLoaderClient::~TestURLLoaderClient() {} | 14 TestURLLoaderClient::~TestURLLoaderClient() {} |
15 | 15 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 quit_closure_for_on_connection_error_.Reset(); | 187 quit_closure_for_on_connection_error_.Reset(); |
188 } | 188 } |
189 | 189 |
190 void TestURLLoaderClient::OnConnectionError() { | 190 void TestURLLoaderClient::OnConnectionError() { |
191 has_received_connection_error_ = true; | 191 has_received_connection_error_ = true; |
192 if (quit_closure_for_on_connection_error_) | 192 if (quit_closure_for_on_connection_error_) |
193 quit_closure_for_on_connection_error_.Run(); | 193 quit_closure_for_on_connection_error_.Run(); |
194 } | 194 } |
195 | 195 |
196 } // namespace content | 196 } // namespace content |
OLD | NEW |