diff options
author | David Su <dysu@google.com> | 2020-02-25 14:27:09 -0800 |
---|---|---|
committer | David Su <dysu@google.com> | 2020-02-25 14:27:48 -0800 |
commit | c1b2d4aca31ef619f1e79784b45bbb54bcc0ae1a (patch) | |
tree | 9ec081f0aad405ad096898363b1654c46596262f /tests | |
parent | b66edf6a39b0038c885b98134679d491ddfffd84 (diff) |
Rename NetworkSelectionStatus#getNetworkDisableReasonString
Renamed to getNetworkSelectionDisableReasonString
to be more descriptive.
Bug: 146046526
Test: compiles
Change-Id: I8b8f9984a15da8978913c780c0e957478b7caeac
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/util/XmlUtilTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/util/XmlUtilTest.java b/tests/wifitests/src/com/android/server/wifi/util/XmlUtilTest.java index 6bbb4e945..8f8c01de2 100644 --- a/tests/wifitests/src/com/android/server/wifi/util/XmlUtilTest.java +++ b/tests/wifitests/src/com/android/server/wifi/util/XmlUtilTest.java @@ -336,7 +336,7 @@ public class XmlUtilTest extends WifiBaseTest { * Verify that a network selection disable reason deprecation is handled correctly during * restore of data after upgrade. * This test tries to simulate the scenario where we have a - * {@link NetworkSelectionStatus#getNetworkDisableReasonString()} ()} string stored + * {@link NetworkSelectionStatus#getNetworkSelectionDisableReasonString()} ()} string stored * in the XML file from a previous release which has now been deprecated. The network should * be restored as enabled. */ @@ -358,7 +358,8 @@ public class XmlUtilTest extends WifiBaseTest { // Now modify the disable reason string with some invalid string in XML data. String xmlString = new String(xmlData); String deprecatedXmlString = - xmlString.replaceAll(status.getNetworkDisableReasonString(), "DISABLED_DEPRECATED"); + xmlString.replaceAll(status.getNetworkSelectionDisableReasonString(), + "DISABLED_DEPRECATED"); // Ensure that the modification did take effect. assertFalse(xmlString.equals(deprecatedXmlString)); |