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

Side by Side Diff: ios/web/public/test/http_server/delayed_response_provider.h

Issue 2898733003: Split up ios/web:test_support. (Closed)
Patch Set: don't break downstream clients Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 IOS_WEB_PUBLIC_TEST_RESPONSE_PROVIDERS_DELAYED_RESPONSE_PROVIDER_H_ 5 #ifndef IOS_WEB_PUBLIC_TEST_HTTP_SERVER_DELAYED_RESPONSE_PROVIDER_H_
6 #define IOS_WEB_PUBLIC_TEST_RESPONSE_PROVIDERS_DELAYED_RESPONSE_PROVIDER_H_ 6 #define IOS_WEB_PUBLIC_TEST_HTTP_SERVER_DELAYED_RESPONSE_PROVIDER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #import "ios/web/public/test/response_providers/response_provider.h" 10 #import "ios/web/public/test/http_server/response_provider.h"
11 11
12 namespace web { 12 namespace web {
13 13
14 // A Response provider that delays the response provided by another reponse 14 // A Response provider that delays the response provided by another reponse
15 // provider 15 // provider
16 class DelayedResponseProvider : public ResponseProvider { 16 class DelayedResponseProvider : public ResponseProvider {
17 public: 17 public:
18 // Creates a DelayedResponseProvider that delays the response from 18 // Creates a DelayedResponseProvider that delays the response from
19 // |delayed_provider| by |delay| seconds. 19 // |delayed_provider| by |delay| seconds.
20 DelayedResponseProvider( 20 DelayedResponseProvider(
(...skipping 12 matching lines...) Expand all
33 33
34 private: 34 private:
35 std::unique_ptr<web::ResponseProvider> delayed_provider_; 35 std::unique_ptr<web::ResponseProvider> delayed_provider_;
36 double delay_; 36 double delay_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(DelayedResponseProvider); 38 DISALLOW_COPY_AND_ASSIGN(DelayedResponseProvider);
39 }; 39 };
40 40
41 } // namespace web 41 } // namespace web
42 42
43 #endif // IOS_WEB_PUBLIC_TEST_RESPONSE_PROVIDERS_DELAYED_RESPONSE_PROVIDER_H_ 43 #endif // IOS_WEB_PUBLIC_TEST_HTTP_SERVER_DELAYED_RESPONSE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698