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

Unified Diff: build/android/devil/android/md5sum_test.py

Issue 1314913009: [Android] Move some pylib modules into devil/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 4 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 | « build/android/devil/android/md5sum.py ('k') | build/android/devil/android/sdk/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/devil/android/md5sum_test.py
diff --git a/build/android/pylib/utils/md5sum_test.py b/build/android/devil/android/md5sum_test.py
similarity index 95%
rename from build/android/pylib/utils/md5sum_test.py
rename to build/android/devil/android/md5sum_test.py
index 5801edc87709bc6570d39ddae25a01f91f1a045f..81c14c2b5f86beb53da490e18965ae7a8827b736 100755
--- a/build/android/pylib/utils/md5sum_test.py
+++ b/build/android/devil/android/md5sum_test.py
@@ -7,10 +7,10 @@ import os
import sys
import unittest
-from pylib import cmd_helper
+from devil.android import device_errors
+from devil.android import md5sum
+from devil.utils import cmd_helper
from pylib import constants
-from pylib.device import device_errors
-from pylib.utils import md5sum
sys.path.append(
os.path.join(constants.DIR_SOURCE_ROOT, 'third_party', 'pymock'))
@@ -39,7 +39,8 @@ class Md5SumTest(unittest.TestCase):
test_path = '/test/host/file.dat'
mock_get_cmd_output = mock.Mock(
return_value='0123456789abcdeffedcba9876543210 /test/host/file.dat')
- with mock.patch('pylib.cmd_helper.GetCmdOutput', new=mock_get_cmd_output):
+ with mock.patch('devil.utils.cmd_helper.GetCmdOutput',
+ new=mock_get_cmd_output):
out = md5sum.CalculateHostMd5Sums(test_path)
self.assertEquals(1, len(out))
self.assertTrue('/test/host/file.dat' in out)
@@ -53,7 +54,8 @@ class Md5SumTest(unittest.TestCase):
mock_get_cmd_output = mock.Mock(
return_value='0123456789abcdeffedcba9876543210 /test/host/file0.dat\n'
'123456789abcdef00fedcba987654321 /test/host/file1.dat\n')
- with mock.patch('pylib.cmd_helper.GetCmdOutput', new=mock_get_cmd_output):
+ with mock.patch('devil.utils.cmd_helper.GetCmdOutput',
+ new=mock_get_cmd_output):
out = md5sum.CalculateHostMd5Sums(test_paths)
self.assertEquals(2, len(out))
self.assertTrue('/test/host/file0.dat' in out)
@@ -71,7 +73,8 @@ class Md5SumTest(unittest.TestCase):
mock_get_cmd_output = mock.Mock(
return_value='0123456789abcdeffedcba9876543210 /test/host/file0.dat\n'
'123456789abcdef00fedcba987654321 /test/host/file1.dat\n')
- with mock.patch('pylib.cmd_helper.GetCmdOutput', new=mock_get_cmd_output):
+ with mock.patch('devil.utils.cmd_helper.GetCmdOutput',
+ new=mock_get_cmd_output):
out = md5sum.CalculateHostMd5Sums(test_paths)
self.assertEquals(2, len(out))
self.assertTrue('/test/host/file0.dat' in out)
« no previous file with comments | « build/android/devil/android/md5sum.py ('k') | build/android/devil/android/sdk/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698