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

Side by Side Diff: trunk/src/build/android/chrome_profiler/profiler_unittest.py

Issue 330713002: Revert 276779 "Move adb_profile_chrome under tools/android/" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import os 5 import os
6 import tempfile 6 import tempfile
7 import unittest 7 import unittest
8 import zipfile 8 import zipfile
9 9
10 from chrome_profiler import profiler 10 from chrome_profiler import profiler
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 try: 70 try:
71 self.assertTrue(result.endswith('.zip')) 71 self.assertTrue(result.endswith('.zip'))
72 self.assertTrue(zipfile.is_zipfile(result)) 72 self.assertTrue(zipfile.is_zipfile(result))
73 with zipfile.ZipFile(result) as f: 73 with zipfile.ZipFile(result) as f:
74 self.assertEquals( 74 self.assertEquals(
75 f.namelist(), 75 f.namelist(),
76 [controllers[0].filename[1:], controllers[1].filename[1:]]) 76 [controllers[0].filename[1:], controllers[1].filename[1:]])
77 finally: 77 finally:
78 os.remove(result) 78 os.remove(result)
OLDNEW
« no previous file with comments | « trunk/src/build/android/chrome_profiler/profiler.py ('k') | trunk/src/build/android/chrome_profiler/run_tests » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698