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 "chrome/browser/component_updater/test/url_request_post_interceptor.h" | 5 #include "base/files/file_util.h" |
6 #include "base/file_util.h" | |
7 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
8 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 #include "chrome/browser/component_updater/test/url_request_post_interceptor.h" |
9 #include "content/public/test/test_browser_thread.h" | 9 #include "content/public/test/test_browser_thread.h" |
10 #include "net/base/upload_bytes_element_reader.h" | 10 #include "net/base/upload_bytes_element_reader.h" |
11 #include "net/url_request/url_request.h" | 11 #include "net/url_request/url_request.h" |
12 #include "net/url_request/url_request_filter.h" | 12 #include "net/url_request/url_request_filter.h" |
13 #include "net/url_request/url_request_interceptor.h" | 13 #include "net/url_request/url_request_interceptor.h" |
14 #include "net/url_request/url_request_simple_job.h" | 14 #include "net/url_request/url_request_simple_job.h" |
15 #include "net/url_request/url_request_test_util.h" | 15 #include "net/url_request/url_request_test_util.h" |
16 | 16 |
17 using content::BrowserThread; | 17 using content::BrowserThread; |
18 | 18 |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 base::Unretained(interceptor))); | 250 base::Unretained(interceptor))); |
251 if (!res) { | 251 if (!res) { |
252 delete interceptor; | 252 delete interceptor; |
253 return NULL; | 253 return NULL; |
254 } | 254 } |
255 | 255 |
256 return interceptor; | 256 return interceptor; |
257 } | 257 } |
258 | 258 |
259 } // namespace component_updater | 259 } // namespace component_updater |
OLD | NEW |