Enable NetworkServiceBrowserTest on Android.

This CL fixed two issues for NetworkServiceBrowserTest on Android.

1. Network service process now is an utility process and doesn't have
base::InitAndroidTestPaths to setup the correct testing directory. So
it can't correctly load the root cert for embedded test server.
See net::EmbeddedTestServer::RegisterTestCerts called in
NetworkServiceTestHelper::RegisterNetworkBinders.

2. When ask to terminate the render process, Android doesn't immediately
kill the process as Linux does, it asks the Android service that holds
the render process to unbind and Android will kill the process later on.
NetworkServiceBrowserTest can use RunLoop to wait for renderer process
being killed.

Bug: 
Change-Id: Ie4d0833045e8f2026308a5a4d741da27a6475d81
Reviewed-on: https://chromium-review.googlesource.com/797692
Commit-Queue: Xing Liu <xingliu@chromium.org>
Reviewed-by: Tommy Nyquist <nyquist@chromium.org>
Reviewed-by: Min Qin(OOO 12/7-1/10) <qinmin@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Cr-Commit-Position: refs/heads/master@{#527707}

CrOS-Libchrome-Original-Commit: 7f2462dc7c0f5aca6254bf488b0388de28a7791d
3 files changed
tree: d02a945fe95f2e95e965496daaf8be7bc2b88a8b
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/