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 #ifndef COMPONENTS_COMPONENT_UPDATER_TEST_URL_REQUEST_POST_INTERCEPTOR_H_ | 5 #ifndef COMPONENTS_COMPONENT_UPDATER_TEST_URL_REQUEST_POST_INTERCEPTOR_H_ |
6 #define COMPONENTS_COMPONENT_UPDATER_TEST_URL_REQUEST_POST_INTERCEPTOR_H_ | 6 #define COMPONENTS_COMPONENT_UPDATER_TEST_URL_REQUEST_POST_INTERCEPTOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // Creates an interceptor for the given url path. | 164 // Creates an interceptor for the given url path. |
165 URLRequestPostInterceptor* CreateInterceptorForPath(const char* url_path); | 165 URLRequestPostInterceptor* CreateInterceptorForPath(const char* url_path); |
166 | 166 |
167 private: | 167 private: |
168 DISALLOW_COPY_AND_ASSIGN(InterceptorFactory); | 168 DISALLOW_COPY_AND_ASSIGN(InterceptorFactory); |
169 }; | 169 }; |
170 | 170 |
171 class PartialMatch : public URLRequestPostInterceptor::RequestMatcher { | 171 class PartialMatch : public URLRequestPostInterceptor::RequestMatcher { |
172 public: | 172 public: |
173 explicit PartialMatch(const std::string& expected) : expected_(expected) {} | 173 explicit PartialMatch(const std::string& expected) : expected_(expected) {} |
174 virtual bool Match(const std::string& actual) const override; | 174 bool Match(const std::string& actual) const override; |
175 | 175 |
176 private: | 176 private: |
177 const std::string expected_; | 177 const std::string expected_; |
178 | 178 |
179 DISALLOW_COPY_AND_ASSIGN(PartialMatch); | 179 DISALLOW_COPY_AND_ASSIGN(PartialMatch); |
180 }; | 180 }; |
181 | 181 |
182 } // namespace component_updater | 182 } // namespace component_updater |
183 | 183 |
184 #endif // COMPONENTS_COMPONENT_UPDATER_TEST_URL_REQUEST_POST_INTERCEPTOR_H_ | 184 #endif // COMPONENTS_COMPONENT_UPDATER_TEST_URL_REQUEST_POST_INTERCEPTOR_H_ |
OLD | NEW |