Kitkat uses chromium based webview, and directory "external/chromium_org" contains code of chromium.
There are integration tests for android webview in the directory:
"external/chromium_org/android_webview/javatests".
I have read the wiki here(https://code.google.com/p/chromium/wiki/AndroidTestInstructions), and I went through it smoothly in the chromium source directory(Not in AOSP, just download the chromium standalone).
But, in AOSP/external/chromium_org, I can not build the test package out. The first assert error is lacking NDK, I made a link to the standalone chromium's NDK. Still, it can not build out with an error:
"ninja: Entering directory `out/Debug'
ninja: error: loading 'build.ninja': No such file or directory
"
My questions are listed below:
Q1: Would you please point out how to build the test package and run the tests for KitKat WebView in AOSP?
Q2: Or, we can only build and run these test in Chromium source directory? If so, how can I guarantee the the tested webview is same with the one used in the KitKat? Because the target of AndroidWebViewTest.apk is AndroidWebView.apk, not the webview in KitKat system image which is build out of code in "AOSP/external/chromium_org".
Q3: If I want to make sure KitKat Chromium webview works well on a specific device, which test cases are needed? Currently, I want to include android.webkit in CTS and the integration test AndroidWebViewTest.apk, will these enough? Do I need to leverage more test cases?