commit | 6f3f32c76f006472df7b9dfcdc33caeaf1ae877a | [log] [tgz] |
---|---|---|
author | Dan Shi <dshi@google.com> | Mon Jun 24 10:08:43 2019 -0700 |
committer | Dan Shi <dshi@google.com> | Tue Jul 09 16:14:23 2019 -0700 |
tree | 822335935ad6b438e15ff17ad1e68dc90ad814e1 | |
parent | 50dd6084b7a65a393554c45fe5cb00c808f9783a [diff] |
Fix mock of IBuildInfo call on getRemoteFiles Bug: 73786521 Test: unittest Change-Id: I123fd85fdc9646f6cb0ee03babd07ec2bb72cf3c
diff --git a/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/retry/RetryFactoryTestTest.java b/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/retry/RetryFactoryTestTest.java index 3c3e264..9b4f8e7 100644 --- a/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/retry/RetryFactoryTestTest.java +++ b/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/retry/RetryFactoryTestTest.java
@@ -102,6 +102,7 @@ mMockMainConfiguration = new Configuration("mockMain", "mockMain"); mCheckers = new ArrayList<>(); mMockInfo = EasyMock.createMock(IDeviceBuildInfo.class); + EasyMock.expect(mMockInfo.getRemoteFiles()).andStubReturn(null); mMockDevice = EasyMock.createMock(ITestDevice.class); mMockContext = new InvocationContext(); mMockContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice);