Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1937)

Unified Diff: chrome/test/kasko/hang_watcher_integration_test.py

Issue 2621363002: Remove Kasko! (Closed)
Patch Set: Rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/kasko/OWNERS ('k') | chrome/test/kasko/kasko_integration_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « chrome/test/kasko/OWNERS ('k') | chrome/test/kasko/kasko_integration_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698