| Index: chrome/test/kasko/hang_watcher_integration_test.py
|
| diff --git a/chrome/test/kasko/hang_watcher_integration_test.py b/chrome/test/kasko/hang_watcher_integration_test.py
|
| deleted file mode 100755
|
| index 24ff9582be518f467c441a2f6760854d083aac12..0000000000000000000000000000000000000000
|
| --- a/chrome/test/kasko/hang_watcher_integration_test.py
|
| +++ /dev/null
|
| @@ -1,64 +0,0 @@
|
| -#!/usr/bin/env python
|
| -# Copyright 2016 The Chromium Authors. All rights reserved.
|
| -# Use of this source code is governed by a BSD-style license that can be
|
| -# found in the LICENSE file.
|
| -
|
| -"""A Windows-only end-to-end integration test for the Chrome hang watcher.
|
| -
|
| -This test ensures that the hang watcher is able to detect when Chrome hangs and
|
| -to generate a Kasko report. The report is then delivered to a locally hosted
|
| -test crash server. If a crash report is received then all is well.
|
| -
|
| -Note that this test only works against non-component Release and Official builds
|
| -of Chrome with Chrome branding, and attempting to use it with anything else will
|
| -most likely lead to constant failures.
|
| -
|
| -Typical usage (assuming in root 'src' directory):
|
| -- generate project files with the following build variables:
|
| - GYP variables:
|
| - branding=Chrome kasko_hang_reports=1
|
| - GN variables:
|
| - target_cpu = "x86"
|
| - is_debug = false
|
| - is_chrome_branded = true
|
| - enable_kasko_hang_reports = true
|
| -- build the release Chrome binaries:
|
| - ninja -C {build_dir} chrome.exe chromedriver.exe
|
| -- run the test:
|
| - python chrome/test/kasko/hang_watcher_integration_test.py
|
| - --chrome={build_dir}\chrome.exe
|
| -"""
|
| -
|
| -import logging
|
| -import os
|
| -import sys
|
| -
|
| -# Bring in the Kasko module.
|
| -KASKO_DIR = os.path.join(os.path.dirname(__file__), 'py')
|
| -sys.path.append(KASKO_DIR)
|
| -import kasko
|
| -
|
| -
|
| -_LOGGER = logging.getLogger(os.path.basename(__file__))
|
| -
|
| -
|
| -def Main():
|
| - options = kasko.config.ParseCommandLine()
|
| -
|
| - kasko.integration_test.RunTest(
|
| - options,
|
| - 'chrome://delayeduithreadhang',
|
| - 120,
|
| - {
|
| - 'hung-process': 'DumpHungBrowserProcess()',
|
| - 'hung-process-is-deadlock': 'GetThreadWaitChain()',
|
| - 'hung-process-wait-chain-00': 'GetThreadWaitChain()',
|
| - })
|
| -
|
| - _LOGGER.info('Test passed successfully!')
|
| -
|
| - return 0
|
| -
|
| -
|
| -if __name__ == '__main__':
|
| - sys.exit(Main())
|
|
|