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 "components/component_updater/test/url_request_post_interceptor.h" | 5 #include "components/component_updater/test/url_request_post_interceptor.h" |
6 | 6 |
7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
| 8 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
9 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
10 #include "components/component_updater/test/test_configurator.h" | 11 #include "components/component_updater/test/test_configurator.h" |
11 #include "net/base/upload_bytes_element_reader.h" | 12 #include "net/base/upload_bytes_element_reader.h" |
12 #include "net/url_request/url_request.h" | 13 #include "net/url_request/url_request.h" |
13 #include "net/url_request/url_request_filter.h" | 14 #include "net/url_request/url_request_filter.h" |
14 #include "net/url_request/url_request_interceptor.h" | 15 #include "net/url_request/url_request_interceptor.h" |
15 #include "net/url_request/url_request_simple_job.h" | 16 #include "net/url_request/url_request_simple_job.h" |
16 #include "net/url_request/url_request_test_util.h" | 17 #include "net/url_request/url_request_test_util.h" |
17 | 18 |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 return CreateInterceptorForPath(POST_INTERCEPT_PATH); | 296 return CreateInterceptorForPath(POST_INTERCEPT_PATH); |
296 } | 297 } |
297 | 298 |
298 URLRequestPostInterceptor* InterceptorFactory::CreateInterceptorForPath( | 299 URLRequestPostInterceptor* InterceptorFactory::CreateInterceptorForPath( |
299 const char* url_path) { | 300 const char* url_path) { |
300 return URLRequestPostInterceptorFactory::CreateInterceptor( | 301 return URLRequestPostInterceptorFactory::CreateInterceptor( |
301 base::FilePath::FromUTF8Unsafe(url_path)); | 302 base::FilePath::FromUTF8Unsafe(url_path)); |
302 } | 303 } |
303 | 304 |
304 } // namespace component_updater | 305 } // namespace component_updater |
OLD | NEW |