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

Unified Diff: tests/breakpad_unittest.py

Issue 9145001: Make sure that direct call to SendStack() doesn't send a stack trace for non googler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 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 | « breakpad.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/breakpad_unittest.py
diff --git a/tests/breakpad_unittest.py b/tests/breakpad_unittest.py
index 4d59c0b854eaa5d97dca0c6e653c2d44e78f0c4b..1ea4950dcc776a663956bde04cb4b51b7d2e25cb 100755
--- a/tests/breakpad_unittest.py
+++ b/tests/breakpad_unittest.py
@@ -23,20 +23,23 @@ class Breakpad(SuperMoxTestBase):
self.mox.StubOutWithMock(breakpad.getpass, 'getuser')
self.mox.StubOutWithMock(breakpad.urllib2, 'urlopen')
breakpad._HOST_NAME = 'bozo'
+ self.assertEquals(False, breakpad.IS_ENABLED)
+ breakpad.IS_ENABLED = True
self._old_sys_argv = breakpad.sys.argv
breakpad.sys.argv = ['my_test']
self._old_sys_version = breakpad.sys.version
breakpad.sys.version = 'random python'
def tearDown(self):
+ breakpad.IS_ENABLED = False
breakpad.sys.version = self._old_sys_version
breakpad.sys.argv = self._old_sys_argv
super(Breakpad, self).tearDown()
def testMembersChanged(self):
members = [
- 'CheckForException', 'DEFAULT_URL', 'FormatException', 'Register',
- 'SendProfiling', 'SendStack',
+ 'CheckForException', 'DEFAULT_URL', 'FormatException', 'IS_ENABLED',
+ 'Register', 'SendProfiling', 'SendStack',
'atexit', 'getpass', 'os', 'post', 'socket', 'sys', 'time', 'traceback',
'urllib', 'urllib2',
]
« no previous file with comments | « breakpad.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698