Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: components/component_updater/test/url_request_post_interceptor.h

Issue 666133002: Standardize usage of virtual/override/final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/component_updater/test/test_installer.h ('k') | components/component_updater/test/url_request_post_interceptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698