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

Unified Diff: Tools/Scripts/webkitpy/layout_tests/breakpad/dump_reader_multipart_unittest.py

Issue 546133003: Reformat webkitpy.layout_tests w/ format-webkitpy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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
Index: Tools/Scripts/webkitpy/layout_tests/breakpad/dump_reader_multipart_unittest.py
diff --git a/Tools/Scripts/webkitpy/layout_tests/breakpad/dump_reader_multipart_unittest.py b/Tools/Scripts/webkitpy/layout_tests/breakpad/dump_reader_multipart_unittest.py
index c849c914cc147762ad7b76a51afb7a0db8566e5c..6da67e8bc0ba6fbc76ab19b0eec251d75215a3d3 100644
--- a/Tools/Scripts/webkitpy/layout_tests/breakpad/dump_reader_multipart_unittest.py
+++ b/Tools/Scripts/webkitpy/layout_tests/breakpad/dump_reader_multipart_unittest.py
@@ -62,7 +62,7 @@ class TestDumpReaderMultipart(unittest.TestCase):
def test_check_is_functional_breakpad_tools_not_found(self):
host = MockHost()
- build_dir = "/mock-checkout/out/Debug"
+ build_dir = '/mock-checkout/out/Debug'
host.filesystem.maybe_make_directory(build_dir)
dump_reader = DumpReaderMultipart(host, build_dir)
dump_reader._file_extension = lambda: 'dmp'
@@ -75,8 +75,8 @@ class TestDumpReaderMultipart(unittest.TestCase):
dump_file = '/crash-dumps/dump.dmp'
expected_pid = '4711'
- host.filesystem.write_text_file(dump_file, "\r\n".join(TestDumpReaderMultipart._MULTIPART_DUMP))
- build_dir = "/mock-checkout/out/Debug"
+ host.filesystem.write_text_file(dump_file, '\r\n'.join(TestDumpReaderMultipart._MULTIPART_DUMP))
+ build_dir = '/mock-checkout/out/Debug'
host.filesystem.maybe_make_directory(build_dir)
host.filesystem.exists = lambda x: True
@@ -94,8 +94,8 @@ class TestDumpReaderMultipart(unittest.TestCase):
host = MockHost()
dump_file = '/crash-dumps/dump.dmp'
- host.filesystem.write_text_file(dump_file, "\r\n".join(TestDumpReaderMultipart._MULTIPART_DUMP))
- build_dir = "/mock-checkout/out/Debug"
+ host.filesystem.write_text_file(dump_file, '\r\n'.join(TestDumpReaderMultipart._MULTIPART_DUMP))
+ build_dir = '/mock-checkout/out/Debug'
host.filesystem.maybe_make_directory(build_dir)
host.filesystem.exists = lambda x: True
@@ -107,9 +107,9 @@ class TestDumpReaderMultipart(unittest.TestCase):
dump_reader._binaries_to_symbolize = lambda: ['content_shell']
self.assertTrue(dump_reader.check_is_functional())
- self.assertEqual("MOCK output of child process", dump_reader._get_stack_from_dump(dump_file))
+ self.assertEqual('MOCK output of child process', dump_reader._get_stack_from_dump(dump_file))
self.assertEqual(2, len(host.executive.calls))
- cmd_line = " ".join(host.executive.calls[0])
+ cmd_line = ' '.join(host.executive.calls[0])
self.assertIn('generate_breakpad_symbols.py', cmd_line)
- cmd_line = " ".join(host.executive.calls[1])
+ cmd_line = ' '.join(host.executive.calls[1])
self.assertIn('minidump_stackwalk', cmd_line)

Powered by Google App Engine
This is Rietveld 408576698