aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-08-06Merge "Fix Wallet robolectric tests, Part 1"android-sdk-4.4.2_r1.0.1android-sdk-4.4.2_r1android-l-preview_r2android-cts-4.4_r4android-cts-4.4_r1android-4.4w_r1android-4.4_r1.2.0.1android-4.4_r1.2android-4.4_r1.1.0.1android-4.4_r1.1android-4.4_r1.0.1android-4.4_r1android-4.4_r0.9android-4.4_r0.8android-4.4_r0.7android-4.4.4_r2.0.1android-4.4.4_r2android-4.4.4_r1.0.1android-4.4.4_r1android-4.4.3_r1.1.0.1android-4.4.3_r1.1android-4.4.3_r1.0.1android-4.4.3_r1android-4.4.2_r2.0.1android-4.4.2_r2android-4.4.2_r1.0.1android-4.4.2_r1android-4.4.1_r1.0.1android-4.4.1_r1l-previewkitkat-wearkitkat-releasekitkat-mr2.2-releasekitkat-mr2.1-releasekitkat-mr2-releasekitkat-mr1.1-releasekitkat-mr1-releasekitkat-devkitkat-cts-releasekitkat-cts-devidea133-weekly-releaseidea133Jeff Hamilton
2013-08-05Fix Wallet robolectric tests, Part 1Zhihong Xu
The build server java compiler builds robolectric tests in such a way that custom shadows are added to class loader after the test classes are loaded. This causes some custom shadows to be ignored when the real classes are referenced in a test class. This and the followup CL fixed that (hopefully) by moving the addition of custom shadows forward to the constructor of WalletRoboTestRunner. Bug:10071558 Change-Id: I76745fdfcc08bdc198de8d90cf15dbabbbada7e0
2013-07-31Add android.providers.Settings.Global support.Jon Boekenoogen
Change-Id: I4b18642a2c398aa686c979fd5267216e659daa7a
2013-06-26Fixed build: Fix resource loading in robolectric for API 18+.Jon Boekenoogen
Look at resource folders in the SDK starting at 18 and continue backwards for 5 sdk versions. Bug: 9573511 Change-Id: If6318dfea851322b5f7798e9df7e96c001f3a1f5
2013-06-27Revert "Fix resource loading in robolectric for API 18+."Jeff Hamilton
This reverts commit 03e9d1058a5f759d0e356563d7e8499ff71b5165. Change-Id: Ib79f9954bea69eaba1b7a9b9c2b908b1622bc348
2013-06-26Fix resource loading in robolectric for API 18+.Jon Boekenoogen
Look at resource folders in the SDK starting at 18 and continue backwards for 5 sdk versions. Bug: 9573511 Change-Id: Ib1f92a247e572be41c4a74ba0556988ae306a0ea
2013-06-20Test only: Fix ShadowSpannableString.getSpansZhihong Xu
In the original version of the method, when the returned array is empty, Java sees it as an array of Objects that it can't cast to T[] after the method returns, resulting in a ClassCastException. This CL fixed that by instantiating an array of the expected type first. Change-Id: Ic918b27566bfc7c8acab0460116e6bb0f6154a62
2013-05-09Add support for View.setFilterTouchesWhenObscured()Farand Koo
Change-Id: I97a19bbe0ec4e021a22760cfade9c81e1346184c
2013-04-30Let robolectric read manifest,res,assets from System propertiesZhihong Xu
Change-Id: I1ad19db93694a02eabf249777fbc895d0f2f76a1
2013-04-08Implement ShadowBinder#getCallingUidMichael Galpin
Change-Id: Ib6d42d0ef31a50e33a61b7669ef710e239647cfc
2013-03-19Implement ShadowSignature.Jon Boekenoogen
Based on AOSP. Change-Id: I9e69df075456390676ec05174324553fb0b9bae9
2013-03-08Populate Account/Intent CREATORsJon Boekenoogen
Change-Id: Ibd4d318c52856392ee037271b1898f08739818b9
2013-03-01ShadowParcel/ShadowBundle improvementsJon Boekenoogen
Necessary for SafeParcelables to be used in JVM tests! 1. Have shadow parcel properly adhere to dataPosition and setDataPosition. 2. Fix broken Robolectric tests to use correct dataPosition behavior 3. Update shadow bundle to support put/get char and put/get short Change-Id: I3a5744567d8e29c2e472aaca52e4369fe15cf00d
2013-02-04Adds mm to dimen unitsandroid-4.3_r3.1android-4.3_r3android-4.3_r2.3android-4.3_r2.2android-4.3_r2.1android-4.3_r2android-4.3_r1.1android-4.3_r1android-4.3_r0.9.1android-4.3_r0.9android-4.3.1_r1tools_r22.2jb-mr2.0.0-releasejb-mr2.0-releasejb-mr2-releasejb-mr2-devJohn Stuppy
Change-Id: I8a95f2c2ed9fa2af2023866cb949a92d314f51a9
2013-02-01Fix Bundle#getBundle(String key, String defaultValue) for value = null.Colin McDonough
Change-Id: If645b30e982c3dc96b50903baeedeab57779b3ce
2013-01-29Add Bundle#getString(String key, String defaultValue) supportColin McDonough
Change-Id: I5b577de3876e3017f85ffd5bb88786309cc82f5c
2013-01-25Adds getSelectedView support to RobolectricJohn Stuppy
Change-Id: Ib8e731155fe94eb07ce7137b3a71731f9f6ae886
2013-01-24Merge "Implementing Activity#getCurrentFocus and View#findFocus."Jeff Hamilton
2013-01-23Implementing Activity#getCurrentFocus and View#findFocus.Cristian Esquivias
A View will return itself if it's in focus and a ViewGroup will recursively look through its children for the first element that has focus. FragmentActivity will search through its fragments. Activity#getCurrentFocus calls findFocus on the contentView. Each view keeps track of its own focus. When a view requests focus no attempt is made of clearing focus from other views. Because of this, ShadowActivty#clearFocus was added to clear focus for all the View children. Change-Id: If156cd79ca74d2736ffc404beba34525fe3ac9f7
2013-01-14Adds support for versioning layoutsJohn Stuppy
This change allows for proper testing of versioned layouts (default vs. v11). Previously, only the default layout was loaded, regardless of SDK version. Change-Id: Ie3be691877a85f511f51067c5e76fc3efbaaa982
2013-01-14Adds peekAuthToken shadow AccountManager methodsJohn Stuppy
Change-Id: I692d9bb1974a45559b06b2142862a210166c30e1
2013-01-02Adds replaceText to ShadowAutoCompleteTextViewJohn Stuppy
Change-Id: I70a91206a0f67340db833d22c4d3527b0b4ca7ab
2012-12-21Implement TextUtils.getTrimmedLengthJon Boekenoogen
Change-Id: I792900386c63cee5124022d62d4c234ac8a8cf36
2012-12-20Implement some methods in ShadowViewGroupFarand Koo
removeView(View), removeViewInLayout(View) removeViews(int, int), removeViewsInLayout(int, int) Change-Id: Ia92d9c3d1fd8bd49eaa2ac1e1c6c45c024bebd65
2012-12-14implement ShadowSpannableString.getSpan[start|end]()Farand Koo
Change-Id: Ifcacd14559e0667bee59d10cbd2611f4bcc5ed25
2012-12-06Added cancelable handling to ShadowDialogFragmentJohn Stuppy
Change-Id: I97a81e9c7174d68f5d693d42105267543cc3f59d
2012-11-29Adds ShadowAutoCompleteTextView for unit testingJohn Stuppy
Change-Id: Ic434b30c1808227281323d140e1b794e49a176c6
2012-10-19Fixed Robolectric ShadowSparseIntArray and ShadowSparseBooleanArray to add ↵John Stuppy
better get(...) and clone() support Change-Id: I0dcee1633dc3e4d9bcfb515af038bf58a8fafc96
2012-10-17Build Robolectric with MakeJon Boekenoogen
Change-Id: Ie2d29ec56c16bcf04087a488274e312a9da3778c
2012-10-15Merge branch 'master' of https://github.com/metalhead8816/robolectric into ↵Jon Boekenoogen
initial_drop
2012-10-12Handle null arrays in ShadowParcel.{write,create}*ArrayJon Boekenoogen
2012-10-03Prevent ResourceLoader crash when running Robolectric without a generated R ↵Jon Boekenoogen
class
2012-09-30Initial empty repositoryChad Jones
2012-09-26Implement ShadowProcess myPid and ShadowBinder getCallingPidJon Boekenoogen
2012-09-24ShadowTypedArray: Implement missing methods of TypedArray and add some tests ↵metalhead8816
for common usecases. Note this was a direct copy of Android source code.
2012-09-20Fix NPE in ResourceLoader if there is no xmlResourceDirJon Boekenoogen
2012-09-18Added show and hide to TestFragmentTransaction and associated ↵John Stuppy
TestFragmentManager
2012-09-18Fix build breakage and indentation issues introduced by zhihongxJon Boekenoogen
2012-09-18fixed some indentationsZhihong Xu
2012-09-18Made Parcel.writeString() handle null stringZhihong Xu
2012-09-18Implement parcel IO methods for ShadowIntent, ShadowPendingIntent and ↵Zhihong Xu
ShadowComponentName
2012-09-17Merge latest changes from upstream Robolectricmetalhead8816
2012-09-17Merge pull request #323 from zoodles/masterMichael Portuesi
Support Android API 16 and more SQLite support
2012-09-14Implement one of the forms of rawQueryWithFactoryMichael Portuesi
2012-09-14Add setWindow() to ShadowActivityWenhui Yao
2012-09-13Add shadow for SQLiteCloseable. This enables the close method defined in ↵Michael Portuesi
ShadowSQLiteDatabase to actually be instrumented onto SQLiteDatabase by the Robolectric shadowizer.
2012-09-12Support for Android API 16. Provide concrete implementations for several ↵Michael Portuesi
Android APIs that were made abstract in API 16. Maven and Ant profiles build against API 16.
2012-09-10Improve ShadowCompundButton and ShadowRadioGroupWenhui Yao
2012-09-10Merge branch 'master' of git://github.com/pivotal/robolectric into robo-stagingWenhui Yao
2012-09-10Improved ShadowNetworkInfo / ShadowConnectivityManagerJan Berkel
* Added getSubtype() * Made it possible to set null active networkinfo