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

Unified Diff: chrome/test/functional/crash_reporter.py

Issue 222873002: Remove pyauto tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 9 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/functional/codesign.py ('k') | chrome/test/functional/execute_javascript.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/crash_reporter.py
===================================================================
--- chrome/test/functional/crash_reporter.py (revision 261231)
+++ chrome/test/functional/crash_reporter.py (working copy)
@@ -1,47 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 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.
-
-import glob
-import os
-
-import pyauto_functional # Must be imported before pyauto
-import pyauto
-import pyauto_utils
-
-
-class CrashReporterTest(pyauto.PyUITest):
- """TestCase for Crash Reporter."""
-
- def testRendererCrash(self):
- """Verify renderer's crash reporting.
-
- Attempts to crash, and then checks that crash dumps get generated. Does
- not actually test crash reports on the server.
- """
- # Bail out if not a branded build
- properties = self.GetBrowserInfo()['properties']
- if properties['branding'] != 'Google Chrome':
- return
-
- # Make sure Chrome minidumps are enabled on Chrome OS
- if self.IsChromeOS():
- minidumps_file = '/mnt/stateful_partition/etc/enable_chromium_minidumps'
- assert os.path.exists(minidumps_file), 'Chrome minidumps are not enabled.'
-
- breakpad_folder = properties['DIR_CRASH_DUMPS']
- self.assertTrue(breakpad_folder, 'Cannot figure crash dir')
-
- unused = pyauto_utils.ExistingPathReplacer(path=breakpad_folder)
- # If the temp dir was created as root on chromeos, make sure chronos can
- # write to it
- if self.IsChromeOS() and os.geteuid() == 0:
- os.chown(breakpad_folder, 1000, 1000)
- self.NavigateToURL('about:crash') # Trigger renderer crash
- dmp_files = glob.glob(os.path.join(breakpad_folder, '*.dmp'))
- self.assertEqual(1, len(dmp_files))
-
-
-if __name__ == '__main__':
- pyauto_functional.Main()
« no previous file with comments | « chrome/test/functional/codesign.py ('k') | chrome/test/functional/execute_javascript.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698