commit | b643fb0e67460344ade2e3db92738999f8168496 | [log] [tgz] |
---|---|---|
author | Makoto Onuki <omakoto@google.com> | Tue Sep 22 15:03:44 2015 -0700 |
committer | Makoto Onuki <omakoto@google.com> | Fri Sep 25 15:36:29 2015 -0700 |
tree | 16a0e3f944d3e824b86d69c25e0cf5f2002e04a3 | |
parent | b8c7ef5eaf24eb747edf308d4946569a61ee52d9 [diff] |
Use a factory class for dependency injection, add more tests. - Extracting into a factory allows us to use mocks in other classes. (Such as Owners.) - Also removed broken test ApplicationRestrictionsTest. Instead added a new simplified test to DevicePolicyManagerTest. - Also stop caching rarely used instances in DPMS. Bug 24061108 Bug 24275172 Change-Id: Ice9e57204b18e7b5f6b115126dab2209041439c2