summaryrefslogtreecommitdiffstats
path: root/nfc-extras
diff options
context:
space:
mode:
authorNick Pelly <npelly@google.com>2011-12-07 09:39:26 -0800
committerNick Pelly <npelly@google.com>2011-12-09 14:35:32 -0800
commit09588f64a280b98eefc22d05fd5ff7916ba9203e (patch)
tree20ee6219e2c1ede71b77dfbdfad80454eddc8cb0 /nfc-extras
parent7da48db9c5c071cfc1c54a3709a02c1300dccd76 (diff)
downloadframeworks_base-09588f64a280b98eefc22d05fd5ff7916ba9203e.zip
frameworks_base-09588f64a280b98eefc22d05fd5ff7916ba9203e.tar.gz
frameworks_base-09588f64a280b98eefc22d05fd5ff7916ba9203e.tar.bz2
Fix BasicNfcEeTest java package.
It was in com.android.nfc_extras, which caused it to get bundled with com.android.nfc_extras.jar, which caused all kinds of confusion when trying to push new versions of the test. It should be in com.android.nfc_extras.tests Also fix getContext() -> getTargetContext(). Change-Id: I1e3afa150809a3ed8c4f88531f039fe7797aca1d
Diffstat (limited to 'nfc-extras')
-rw-r--r--nfc-extras/tests/src/com/android/nfc_extras/tests/BasicNfcEeTest.java (renamed from nfc-extras/tests/src/com/android/nfc_extras/BasicNfcEeTest.java)4
1 files changed, 2 insertions, 2 deletions
diff --git a/nfc-extras/tests/src/com/android/nfc_extras/BasicNfcEeTest.java b/nfc-extras/tests/src/com/android/nfc_extras/tests/BasicNfcEeTest.java
index e1025aa..389dfbe 100644
--- a/nfc-extras/tests/src/com/android/nfc_extras/BasicNfcEeTest.java
+++ b/nfc-extras/tests/src/com/android/nfc_extras/tests/BasicNfcEeTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package com.android.nfc_extras;
+package com.android.nfc_extras.tests;
import android.content.Context;
import android.nfc.NfcAdapter;
@@ -48,7 +48,7 @@ public class BasicNfcEeTest extends InstrumentationTestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
- mContext = getInstrumentation().getContext();
+ mContext = getInstrumentation().getTargetContext();
mAdapterExtras = NfcAdapterExtras.get(NfcAdapter.getDefaultAdapter(mContext));
mEe = mAdapterExtras.getEmbeddedExecutionEnvironment();
}