Chromium Code Reviews| Index: ios/web/public/test/http_server/http_server.h |
| diff --git a/ios/web/public/test/http_server/http_server.h b/ios/web/public/test/http_server/http_server.h |
| index c565eb60613cbc865bdc641f4aef1fe179fd68d1..e843e3ffebc5e336f141a02cd38e3f366cb77ecd 100644 |
| --- a/ios/web/public/test/http_server/http_server.h |
| +++ b/ios/web/public/test/http_server/http_server.h |
| @@ -77,6 +77,8 @@ class HttpServer : public base::RefCountedThreadSafe<HttpServer> { |
| // Stops the server and prevents it from accepting new requests. |
| // Must be called from the main thread. |
| void Stop(); |
| + // Sets the server to hang and return no response. |
| + void SetSuspend(bool suspended); |
| // Returns true if the server is running. |
| // Must be called from the main thread. |
| bool IsRunning() const; |
| @@ -136,6 +138,8 @@ class HttpServer : public base::RefCountedThreadSafe<HttpServer> { |
| // ResponseProvider response back to EmbeddedTestServer response. |
| std::unique_ptr<net::test_server::HttpResponse> GetResponse( |
| const net::test_server::HttpRequest& request); |
| + // Status tracking if the server is hung. |
| + bool isSuspended; |
|
Eugene But (OOO till 7-30)
2017/06/12 02:25:44
s/isSuspended;/is_suspended_ = false;
C++ Style a
|
| DISALLOW_COPY_AND_ASSIGN(HttpServer); |
| }; |