summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorBryce Lee <brycelee@google.com>2017-10-27 10:57:35 -0700
committerBryce Lee <brycelee@google.com>2017-11-14 14:38:11 -0800
commit2a3cc464767732f146641a169992eabf3fc10dcf (patch)
tree6f65f3dc84db65b9f94b1aadbc3ed936d1104b4d /tools/aapt2/java/JavaClassGenerator_test.cpp
parent0fbd9d163b22cc629047b5974be3bde265a51762 (diff)
Make ActivityStackSupervisor instrumentable for unit tests.
Currently, the ActivityStackSupervisor passes an instance of itself during construction to a number of its member variables. Passing a self reference at this time leads to an incomplete object being passed. In the case of testing, it's possible for the instance to be copied after construction for instrumentation, leading to the original instance being retained. This changelist addresses this by moving the creation of these variables to a separate initialize methods. In addition, the affected variables accessed outside the class are now behind accessors to prevent their modification. Bug: 64750076 Test: bit FrameworksServicesTests:com.android.server.am.ActivityStarterTests Test: bit FrameworksServicesTests:com.android.server.am.ActivityStackSupervisorTests Test: bit FrameworksServicesTests:com.android.server.am.ActivityStackTests Test: bit FrameworksServicesTests:com.android.server.am.LaunchingBoundsControllerTests Test: bit FrameworksServicesTests:com.android.server.am.LaunchingActivityPositionerTests Test: bit FrameworksServicesTests:com.android.server.am.LaunchingTaskPositionerTests Test: runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/am/RecentTasksTest.java Change-Id: I19647b24925b82db0ab0955585d7588a28e00f94
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions