diff options
author | Jay Shrauner <shrauner@google.com> | 2014-07-21 18:00:06 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-07-19 22:40:06 +0000 |
commit | ce4126734173687c887652a8914d4e9d13f6249e (patch) | |
tree | ea33ca9e17fb4a8da8c93947070a08c0eb7d7c2e /tests | |
parent | 08fcfaf14fff04d73b6d34261fee5eb7a979b5c1 (diff) | |
parent | e13f5e1f88b197c890b1a753dc9c8ba9a0323f46 (diff) |
Merge "Remove hardcoded class name from test" into lmp-dev
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/android/dialer/calllog/CallLogFragmentTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/com/android/dialer/calllog/CallLogFragmentTest.java b/tests/src/com/android/dialer/calllog/CallLogFragmentTest.java index 964d8a299..e0e111bcf 100644 --- a/tests/src/com/android/dialer/calllog/CallLogFragmentTest.java +++ b/tests/src/com/android/dialer/calllog/CallLogFragmentTest.java @@ -98,7 +98,7 @@ public class CallLogFragmentTest extends ActivityInstrumentationTestCase2<Fragme private View[] mList; public CallLogFragmentTest() { - super("com.android.dialer", FragmentTestActivity.class); + super(FragmentTestActivity.class); mIndex = 1; mRnd = new Random(); } @@ -400,7 +400,8 @@ public class CallLogFragmentTest extends ActivityInstrumentationTestCase2<Fragme */ private Bitmap getBitmap(String resName) { Resources r = mActivity.getResources(); - int resid = r.getIdentifier(resName, "drawable", "com.android.dialer"); + int resid = r.getIdentifier(resName, "drawable", + getInstrumentation().getTargetContext().getPackageName()); BitmapDrawable d = (BitmapDrawable) r.getDrawable(resid); assertNotNull(d); return d.getBitmap(); |