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

Side by Side Diff: android_webview/embeddedtestserver/test/android/aw_test_jni_onload.cc

Issue 2687573002: [Android Webview] Refactor LoadUrlTest and work on embedded_test_server custom handler (Closed)
Patch Set: discussing patch Created 3 years, 9 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "android_webview/embeddedtestserver/test/android/aw_test_jni_onload.h"
6
7 #include "android_webview/embeddedtestserver/aw_embedded_test_server_android.h"
8 #include "base/android/base_jni_onload.h"
9 #include "base/android/base_jni_registrar.h"
10 #include "base/android/jni_android.h"
11 #include "base/bind.h"
12
13 namespace net {
14 namespace test {
15
16 namespace {
17
18 bool RegisterJNI(JNIEnv* env) {
19 return net::test_server::AwEmbeddedTestServerAndroid::
20 RegisterAwEmbeddedTestServerAndroid(env);
21 }
22
23 } // namesapce
24
25 bool OnJNIOnLoadRegisterJNI(JNIEnv* env) {
26 return base::android::OnJNIOnLoadRegisterJNI(env) &&
27 base::android::RegisterJni(env) && RegisterJNI(env);
28 }
29
30 bool OnJNIOnLoadInit() {
31 return base::android::OnJNIOnLoadInit();
32 }
33
34 } // namespace test
35 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698