title: How to build and run tests against Chromium based WebView on KitKat
body: <p>Kitkat uses chromium based webview, and directory "external/chromium_org" contains code of chromium.</p>
  
  <p>There are integration tests for android webview in the directory:</p>
  
  <pre><code>"external/chromium_org/android_webview/javatests".
  </code></pre>
  
  <p>I have read the wiki here(<a href="https://code.google.com/p/chromium/wiki/AndroidTestInstructions" rel="nofollow">https://code.google.com/p/chromium/wiki/AndroidTestInstructions</a>),
  and I went through it smoothly in the chromium source directory(Not in AOSP, just download the chromium standalone).</p>
  
  <p>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:</p>
  
  <pre><code>"ninja: Entering directory `out/Debug'
   ninja: error: loading 'build.ninja': No such file or directory
  "
  </code></pre>
  
  <hr>
  
  <p>My questions are listed below:</p>
  
  <p>Q1: Would you please point out how to build the test package and run the tests for KitKat WebView in AOSP?</p>
  
  <p>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". </p>
  
  <p>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?</p>