| Index: build/android/pylib/device/adb_wrapper_test.py
|
| diff --git a/build/android/pylib/device/adb_wrapper_test.py b/build/android/pylib/device/adb_wrapper_test.py
|
| index 1e533c4770e934c14eb4971996e66eac8cabd197..52bedb498066fdb56a57d69c8b07c79763b476a4 100644
|
| --- a/build/android/pylib/device/adb_wrapper_test.py
|
| +++ b/build/android/pylib/device/adb_wrapper_test.py
|
| @@ -5,12 +5,11 @@
|
| """Tests for the AdbWrapper class."""
|
|
|
| import os
|
| -import socket
|
| import tempfile
|
| import time
|
| import unittest
|
|
|
| -import adb_wrapper
|
| +from pylib.device import adb_wrapper
|
|
|
|
|
| class TestAdbWrapper(unittest.TestCase):
|
| @@ -21,7 +20,8 @@ class TestAdbWrapper(unittest.TestCase):
|
| self._adb = devices[0]
|
| self._adb.WaitForDevice()
|
|
|
| - def _MakeTempFile(self, contents):
|
| + @staticmethod
|
| + def _MakeTempFile(contents):
|
| """Make a temporary file with the given contents.
|
|
|
| Args:
|
| @@ -32,7 +32,7 @@ class TestAdbWrapper(unittest.TestCase):
|
| """
|
| fi, path = tempfile.mkstemp()
|
| with os.fdopen(fi, 'wb') as f:
|
| - f.write('foo')
|
| + f.write(contents)
|
| return path
|
|
|
| def testShell(self):
|
|
|