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

Side by Side Diff: android_webview/test/embedded_test_server/aw_test_jni_onload.cc

Issue 2687573002: [Android Webview] Refactor LoadUrlTest and work on embedded_test_server custom handler (Closed)
Patch Set: sgurun comment 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/test/embedded_test_server/aw_test_jni_onload.h"
6
7 #include "android_webview/test/embedded_test_server/aw_embedded_test_server.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 #include "base/trace_event/trace_event.h"
13 #include "net/test/android/net_test_jni_onload.h"
14 #include "net/test/embedded_test_server/android/embedded_test_server_android.h"
15
16 namespace android_webview {
17 namespace test {
18
19 namespace {
20
21 bool RegisterJNI(JNIEnv* env) {
22 TRACE_EVENT0("native", "android_webview::test::RegisterJNI");
sgurun-gerrit only 2017/03/29 18:19:27 why is it useful to have trace_event here?
shenghuazhang 2017/04/11 01:38:27 Added for debugging reason. Will remove it.
23 return android_webview::test::RegisterCustomHandlers(env);
24 }
25
26 } // namesapce
27
28 bool OnJNIOnLoadRegisterJNI(JNIEnv* env) {
29 return net::test::OnJNIOnLoadRegisterJNI(env) && RegisterJNI(env);
30 }
31
32 bool OnJNIOnLoadInit() {
33 return base::android::OnJNIOnLoadInit();
34 }
35
36 } // namespace test
37 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698