diff options
author | Jason Tholstrup <jthol@google.com> | 2016-10-11 17:30:23 -0700 |
---|---|---|
committer | Jason Tholstrup <jthol@google.com> | 2016-10-12 10:32:59 -0700 |
commit | 9d08dc39212e6ecd5a60024f724ac383ab3f8e6e (patch) | |
tree | c419cc51ac7dcc06dd05cbf95603a91b712d0509 /tests/android_support_car_api_test | |
parent | d4e8ee2c7ab413821c68e4fb7f69c0c3733232de (diff) | |
download | Car-9d08dc39212e6ecd5a60024f724ac383ab3f8e6e.tar.gz |
Minor fixes to Car Support Lib
Change-Id: Ic24958b06b622f28dc5473e116d1f4c3074c9808
Diffstat (limited to 'tests/android_support_car_api_test')
-rw-r--r-- | tests/android_support_car_api_test/src/com/android/support/car/apitest/CarConnectionCallbackTest.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/android_support_car_api_test/src/com/android/support/car/apitest/CarConnectionCallbackTest.java b/tests/android_support_car_api_test/src/com/android/support/car/apitest/CarConnectionCallbackTest.java index 4ae66853b7..dd6f0d7e14 100644 --- a/tests/android_support_car_api_test/src/com/android/support/car/apitest/CarConnectionCallbackTest.java +++ b/tests/android_support_car_api_test/src/com/android/support/car/apitest/CarConnectionCallbackTest.java @@ -30,21 +30,21 @@ public class CarConnectionCallbackTest extends CarApiTestBase { public void testRegisterUnregister() throws Exception { CarConnectionCallbackImpl listener = new CarConnectionCallbackImpl(); - getCar().registerCarConnectionCallbacks(listener); + getCar().registerCarConnectionCallback(listener); assertTrue(listener.waitForConnection(DEFAULT_WAIT_TIMEOUT_MS)); - getCar().unregisterCarConnectionCallbacks(listener); + getCar().unregisterCarConnectionCallback(listener); } public void testMultiple() throws Exception { CarConnectionCallbackImpl listener1 = new CarConnectionCallbackImpl(); - getCar().registerCarConnectionCallbacks(listener1); + getCar().registerCarConnectionCallback(listener1); assertTrue(listener1.waitForConnection(DEFAULT_WAIT_TIMEOUT_MS)); CarConnectionCallbackImpl listener2 = new CarConnectionCallbackImpl(); - getCar().registerCarConnectionCallbacks(listener2); + getCar().registerCarConnectionCallback(listener2); assertTrue(listener2.waitForConnection(DEFAULT_WAIT_TIMEOUT_MS)); assertFalse(listener1.waitForConnection(DEFAULT_WAIT_TIMEOUT_MS)); - getCar().unregisterCarConnectionCallbacks(listener2); - getCar().unregisterCarConnectionCallbacks(listener1); + getCar().unregisterCarConnectionCallback(listener2); + getCar().unregisterCarConnectionCallback(listener1); } private class CarConnectionCallbackImpl extends CarConnectionCallback { |