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

Unified Diff: build/android/devil/android/sdk/shared_prefs_test.py

Issue 1399273002: [Android] Add a configurable environment for devil/. (RELAND) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android_any -> android_host Created 5 years, 2 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/sdk/dexdump.py ('k') | build/android/devil/android/sdk/split_select.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/devil/android/sdk/shared_prefs_test.py
diff --git a/build/android/devil/android/sdk/shared_prefs_test.py b/build/android/devil/android/sdk/shared_prefs_test.py
index 63d9aeceea6bb149f5c290910953d658fa852bc2..6eba2295204bc9c4ac66e149ee7882f430901ab1 100755
--- a/build/android/devil/android/sdk/shared_prefs_test.py
+++ b/build/android/devil/android/sdk/shared_prefs_test.py
@@ -8,16 +8,14 @@ Unit tests for the contents of shared_prefs.py (mostly SharedPrefs).
"""
import logging
-import os
import sys
import unittest
+from devil import devil_env
from devil.android import device_utils
from devil.android.sdk import shared_prefs
-from pylib import constants
-sys.path.append(os.path.join(
- constants.DIR_SOURCE_ROOT, 'third_party', 'pymock'))
+sys.path.append(devil_env.config.LocalPath('pymock'))
import mock # pylint: disable=import-error
« no previous file with comments | « build/android/devil/android/sdk/dexdump.py ('k') | build/android/devil/android/sdk/split_select.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698