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

Unified Diff: ios/web/public/test/http_server/http_server.h

Issue 2931453002: Re-enable reading list tests (Closed)
Patch Set: nit 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 side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698