Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 014506e1 authored by Jack Yu's avatar Jack Yu
Browse files

Migrated unit test cases

Migrated telephony data unit tests to the new
package com.android.internal.telephony.data

Fix: 213586371
Test: atest FrameworksTelephonyTests
Change-Id: I8cf90be437ff7ed886b059eaa5cb71785a50c8d2
parent 82aa809d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 */

package com.android.internal.telephony.dataconnection;
package com.android.internal.telephony.data;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
@@ -38,7 +38,6 @@ import android.testing.AndroidTestingRunner;
import android.testing.TestableLooper;

import com.android.internal.telephony.TelephonyTest;
import com.android.internal.telephony.data.AccessNetworksManager;

import org.junit.After;
import org.junit.Before;
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 */

package com.android.internal.telephony.dataconnection;
package com.android.internal.telephony.data;

import static com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_ADDRESS;
import static com.android.internal.telephony.dataconnection.DcTrackerTest.FAKE_DNS;
+1 −2
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 */

package com.android.internal.telephony.dataconnection;
package com.android.internal.telephony.data;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
@@ -28,7 +28,6 @@ import android.test.suitebuilder.annotation.SmallTest;

import com.android.internal.telephony.PhoneConstants;
import com.android.internal.telephony.TelephonyTest;
import com.android.internal.telephony.data.DataEnabledOverride;

import org.junit.After;
import org.junit.Before;
+3 −3
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 */

package com.android.internal.telephony.dataconnection;
package com.android.internal.telephony.data;

import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.assertFalse;
@@ -182,8 +182,8 @@ public class DataFailCauseTest extends TelephonyTest {
        for (int i = 0; i < 2; i++) {
            for (DcFailCauseData data : mFailCauseDataList) {
                if (DataFailCause.getFailCause(data.mCause) == (
                        DataFailCause.SERVICE_OPTION_NOT_SUBSCRIBED) ||
                        DataFailCause.getFailCause(data.mCause) == (
                        DataFailCause.SERVICE_OPTION_NOT_SUBSCRIBED)
                        || DataFailCause.getFailCause(data.mCause) == (
                                DataFailCause.TETHERED_CALL_ACTIVE)) {
                    assertTrue("cause = " + data.mCause,
                            DataFailCause.isPermanentFailure(mContext,