eac95336d177366b2f2da2110db39abbc49f524a |
|
17-Feb-2014 |
Narayan Kamath <narayan@google.com> |
DO NOT MERGE Fix Preferences related tests, document limitations. - The default Preferences factory methods are entirely useless on android. "java.home" points to a location in a read-only partition and "user.home" is set to "/" which apps are not allowed to write to. A strong warning has been added against these methods. - We continue to support the underlying default preferences implementation (even though there's no way to use the impl. directly except by reflection) to help apps transition *just in case* they were manually massing "user.home" and "java.home". - Add a fake preferences factory that allows us to use a new (temporary) preferences root for every test. Fixed a test interdependency issue that was uncovered by this change. (cherry picked from commit b27fd46c694f8ee4118d6b9bdd61741472ee92b5) Bug: 13763685 Bug: 13763900 Change-Id: I6019441c65b398376d84264f1e4c9776507533eb
|
b27fd46c694f8ee4118d6b9bdd61741472ee92b5 |
|
17-Feb-2014 |
Narayan Kamath <narayan@google.com> |
Fix Preferences related tests, document limitations. - The default Preferences factory methods are entirely useless on android. "java.home" points to a location in a read-only partition and "user.home" is set to "/" which apps are not allowed to write to. A strong warning has been added against these methods. - We continue to support the underlying default preferences implementation (even though there's no way to use the impl. directly except by reflection) to help apps transition *just in case* they were manually massing "user.home" and "java.home". - Add a fake preferences factory that allows us to use a new (temporary) preferences root for every test. Fixed a test interdependency issue that was uncovered by this change. Change-Id: I6019441c65b398376d84264f1e4c9776507533eb
|
cc5d0071987b9cacd58750e53ede3fd3b53fb2c9 |
|
10-Oct-2012 |
Elliott Hughes <enh@google.com> |
Fix races in OldPreferencesTest. (cherry-pick of 0f12963651c3f11e50c36c96338fab085ed0bbd9.) Bug: 6972612 Change-Id: Ibc919c7023898f9e521f222d69c7efb50a170923
|
0f12963651c3f11e50c36c96338fab085ed0bbd9 |
|
10-Oct-2012 |
Elliott Hughes <enh@google.com> |
Fix races in OldPreferencesTest. Bug: 6972612 Change-Id: I8adef78824a4a42cf1411c8ef8279ae9b184ee25
|
a744a0370d151794f5a20a23fa549cc2f34df7d6 |
|
19-Aug-2011 |
Jesse Wilson <jessewilson@google.com> |
Clear the preferences nodes before asserting about them. Change-Id: I18c826f70a820bdcd6bcb46a8af9038ba685fc30
|
38db242d16a5a31fd86c519b817ae94c5fc89417 |
|
27-Jan-2011 |
Elliott Hughes <enh@google.com> |
Consistently use "expected" for expected exceptions in our tests. Change-Id: I796624fb53dbba420d43858741c9a97b4fb8d017
|
80c9f71990a6655b7b2b43dc1946487e917f0f9d |
|
09-Dec-2010 |
Jesse Wilson <jessewilson@google.com> |
Remove prefs tests duplicated with Harmony. We have at least one expectation set (on PreferencesTest.testImportPreferences) where the expectation is different on Harmony than on our revised copy. Change-Id: I9c983755a91728d2f6bdee7ec59439c10e327cda http://b/3246523
|