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

Unified Diff: android_webview/embeddedtestserver/custom_handlers.h

Issue 2687573002: [Android Webview] Refactor LoadUrlTest and work on embedded_test_server custom handler (Closed)
Patch Set: discussing patch Created 3 years, 10 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: android_webview/embeddedtestserver/custom_handlers.h
diff --git a/android_webview/embeddedtestserver/custom_handlers.h b/android_webview/embeddedtestserver/custom_handlers.h
new file mode 100644
index 0000000000000000000000000000000000000000..4b0bf170bd935599c120573e83f145f103c6f7db
--- /dev/null
+++ b/android_webview/embeddedtestserver/custom_handlers.h
@@ -0,0 +1,29 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ANDROID_WEBVIEW_EMBEDDEDTESTSERVER_CUSTOM_HANDLERS_H_
+#define ANDROID_WEBVIEW_EMBEDDEDTESTSERVER_CUSTOM_HANDLERS_H_
+
+#include <stdlib.h>
+#include <sstream>
+#include <string>
+#include <utility>
+
+#include "base/android/scoped_java_ref.h"
+#include "base/base64.h"
+#include "net/test/embedded_test_server/embedded_test_server.h"
+#include "net/test/embedded_test_server/http_request.h"
+#include "net/test/embedded_test_server/http_response.h"
+
+namespace net {
+namespace test_server {
+
+std::unique_ptr<HttpResponse> HandleClickRedirect(const HttpRequest& request);
+
+std::vector<jlong> getHandlers();
+
+} // namespace test_server
+} // namespace net
+
+#endif // ANDROID_WEBVIEW_EMBEDDEDTESTSERVER_CUSTOM_HANDLERS_H_

Powered by Google App Engine
This is Rietveld 408576698