| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.net; | 5 package org.chromium.net; |
| 6 | 6 |
| 7 import android.os.ConditionVariable; | 7 import android.os.ConditionVariable; |
| 8 import android.test.suitebuilder.annotation.LargeTest; | 8 import android.test.suitebuilder.annotation.LargeTest; |
| 9 import android.test.suitebuilder.annotation.SmallTest; | 9 import android.test.suitebuilder.annotation.SmallTest; |
| 10 | 10 |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 assertTrue(throughputListener.throughputObservationCount() > 0); | 215 assertTrue(throughputListener.throughputObservationCount() > 0); |
| 216 | 216 |
| 217 // Check RTT observation count after throughput observation has been rec
eived. This ensures | 217 // Check RTT observation count after throughput observation has been rec
eived. This ensures |
| 218 // that executor has finished posting the RTT observation to the RTT lis
teners. | 218 // that executor has finished posting the RTT observation to the RTT lis
teners. |
| 219 // NETWORK_QUALITY_OBSERVATION_SOURCE_URL_REQUEST | 219 // NETWORK_QUALITY_OBSERVATION_SOURCE_URL_REQUEST |
| 220 assertTrue(rttListener.rttObservationCount(0) > 0); | 220 assertTrue(rttListener.rttObservationCount(0) > 0); |
| 221 | 221 |
| 222 // NETWORK_QUALITY_OBSERVATION_SOURCE_QUIC | 222 // NETWORK_QUALITY_OBSERVATION_SOURCE_QUIC |
| 223 assertTrue(rttListener.rttObservationCount(2) > 0); | 223 assertTrue(rttListener.rttObservationCount(2) > 0); |
| 224 | 224 |
| 225 // Verify that effective connection type callback is received and | |
| 226 // effective connection type is correctly set. | |
| 227 assertTrue(mTestFramework.mCronetEngine.getEffectiveConnectionType() | |
| 228 != EffectiveConnectionType.EFFECTIVE_CONNECTION_TYPE_UNKNOWN); | |
| 229 | |
| 230 mTestFramework.mCronetEngine.shutdown(); | 225 mTestFramework.mCronetEngine.shutdown(); |
| 231 } | 226 } |
| 232 } | 227 } |
| OLD | NEW |