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