New issue
Advanced search Search tips

Issue 904549 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocked on:
issue 910734

Blocking:
issue 729596



Sign in to add a comment

Introduce browser tests running in Service Manager only mode.

Project Member Reported by hanxi@chromium.org, Nov 12

Issue description

Add browser tests that are running without starting the full browser.

We could start with running a test that starts service manager only. Then, add more tests that start download service and network service after the service manager starts.

We could starts from Android browser tests which can create a service with the option to not start the full browser. An example is ChromeBackgroundServiceTest:
https://cs.chromium.org/chromium/src/chrome/android/javatests/src/org/chromium/chrome/browser/ChromeBackgroundServiceTest.java
 
Owner: hnakashima@chromium.org
Re-assign to hnakashima@.

The first CL gets lgtm:
https://chromium-review.googlesource.com/c/chromium/src/+/1332259/ 

We could add more tests to do a start download tasks.
Blockedon: 910734
Project Member

Comment 4 by bugdroid1@chromium.org, Dec 11

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2c9e715797704e6eed236eef16d2daf92c44fe8b

commit 2c9e715797704e6eed236eef16d2daf92c44fe8b
Author: Xi Han <hanxi@google.com>
Date: Tue Dec 11 21:26:50 2018

Add a checks that full browser doesn't started in
ServicificationBackgroundServiceTest.

Add a check to make sure the background tasks are running in ServiceManager
only mode and the full browser doesn't start. Otherwise, if the test falls back
to start the full browser, it won't be able to detect any failure that happens
only in the ServiceManager mode.

To do this, we plumb the startup result from the native to Java via the
callback when ServiceManager started. The callback will tells Java if the full
browser is starting.

Bug: 904549
Change-Id: I39d39166269fa0fcebf54b9d8ece3b6c761a223a
Reviewed-on: https://chromium-review.googlesource.com/c/1363369
Commit-Queue: Xi Han <hanxi@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Reviewed-by: Min Qin <qinmin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615666}
[modify] https://crrev.com/2c9e715797704e6eed236eef16d2daf92c44fe8b/chrome/android/javatests/src/org/chromium/chrome/browser/ServicificationBackgroundService.java
[modify] https://crrev.com/2c9e715797704e6eed236eef16d2daf92c44fe8b/chrome/android/javatests/src/org/chromium/chrome/browser/ServicificationBackgroundServiceTest.java
[modify] https://crrev.com/2c9e715797704e6eed236eef16d2daf92c44fe8b/chrome/android/javatests/src/org/chromium/chrome/browser/download/ServicificationDownloadTest.java
[modify] https://crrev.com/2c9e715797704e6eed236eef16d2daf92c44fe8b/content/app/content_main_runner_impl.cc
[modify] https://crrev.com/2c9e715797704e6eed236eef16d2daf92c44fe8b/content/public/android/java/src/org/chromium/content/browser/BrowserStartupControllerImpl.java

Sign in to add a comment