diff options
author | Roshan Pius <rpius@google.com> | 2017-04-12 17:13:28 -0700 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2017-04-12 17:25:58 -0700 |
commit | d5a56317c4697aab6fc8c277ba33dbce6542db79 (patch) | |
tree | bf91e9b1dfe5c2364b02aafb840aa35446bc5ca3 /tests | |
parent | 911facd2a26141efe5f242e11a07a9d84a45749a (diff) |
SupplicantP2pIfaceCallback: Remove quotes around network name
This is needed to maintain backward compatibility with previous
releases.
Bug: 37286961
Test: Unit tests
Change-Id: Ie40bfecfbb302cb4f5e93695d9a2e60f8c405c56
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/p2p/SupplicantP2pIfaceCallbackTest.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/p2p/SupplicantP2pIfaceCallbackTest.java b/tests/wifitests/src/com/android/server/wifi/p2p/SupplicantP2pIfaceCallbackTest.java index ff39a203e..ec1d43364 100644 --- a/tests/wifitests/src/com/android/server/wifi/p2p/SupplicantP2pIfaceCallbackTest.java +++ b/tests/wifitests/src/com/android/server/wifi/p2p/SupplicantP2pIfaceCallbackTest.java @@ -18,12 +18,10 @@ package com.android.server.wifi.p2p; import static org.junit.Assert.*; import static org.mockito.Matchers.*; import static org.mockito.Mockito.doAnswer; -import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; -import static org.mockito.Mockito.when; import android.app.test.MockAnswerUtil.AnswerWithArguments; import android.hardware.wifi.supplicant.V1_0.ISupplicantP2pIfaceCallback; @@ -33,15 +31,12 @@ import android.net.wifi.p2p.WifiP2pConfig; import android.net.wifi.p2p.WifiP2pDevice; import android.net.wifi.p2p.WifiP2pGroup; import android.net.wifi.p2p.WifiP2pProvDiscEvent; -import android.net.wifi.p2p.WifiP2pWfdInfo; import org.junit.Assert.*; import org.junit.Before; import org.junit.Test; import org.mockito.ArgumentCaptor; -import org.mockito.Mock; import org.mockito.MockitoAnnotations; -import org.mockito.stubbing.Answer; import java.util.ArrayList; import java.util.HashSet; @@ -295,7 +290,7 @@ public class SupplicantP2pIfaceCallbackTest { add((byte)0x32); add((byte)0x33); }}; - String fakeSsidString = "\"0123\""; + String fakeSsidString = "0123"; HashSet<String> passwords = new HashSet<String>(); doAnswer(new AnswerWithArguments() { |