blob: 2e14d62d72b994b10813a0eea3470e0dc8391cbe [file] [log] [blame]
// Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package ui
import (
func init() {
Func: ChromeRespawn,
Desc: "Checks that Chrome respawns after exit",
Contacts: []string{
"", // session_manager owner
SoftwareDeps: []string{"chrome"},
Attr: []string{"group:mainline"},
func ChromeRespawn(ctx context.Context, s *testing.State) {
if err := upstart.EnsureJobRunning(ctx, "ui"); err != nil {
s.Fatal("Failed to ensure ui job is running: ", err)
respawn.TestRespawn(ctx, s, "Chrome", chromeproc.GetRootPID)