commit | 5d9eed597ba324640aeab5c59bd978e925ed6c88 | [log] [tgz] |
---|---|---|
author | Yan Han <yanha@google.com> | Mon Nov 30 10:52:57 2020 +0100 |
committer | Yan Han <yanha@google.com> | Tue Dec 01 16:38:01 2020 +0100 |
tree | ccc6b9d096564a8d2d02e14f1fea1a697452b41a | |
parent | 3a9b54f70487cd139c9c4d1bf740cf30a3564aba [diff] |
Refactor CecMessageBuffer to live in its own file This allows tests to use Mockito spies instead of anonymous classes to override methods in HdmiControlService. Using a spy caused runtime errors because CecMessageBuffer, as an inner class, would call methods on the original, uninitialized instance of HdmiControlService instead of the spy. Test: atest Change-Id: If255e7b73b5f15c27ecd5dfb7a37993663f39a48