| 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.SmallTest; | 8 import android.test.suitebuilder.annotation.SmallTest; |
| 9 | 9 |
| 10 import org.chromium.base.test.util.Feature; | 10 import org.chromium.base.test.util.Feature; |
| 11 import org.chromium.net.CronetTestBase.OnlyRunNativeCronet; | 11 import org.chromium.net.CronetTestBase.OnlyRunNativeCronet; |
| 12 import org.chromium.net.impl.ChromiumUrlRequestFactory; |
| 13 import org.chromium.net.impl.CronetUrlRequestContext; |
| 12 | 14 |
| 13 import java.io.BufferedReader; | 15 import java.io.BufferedReader; |
| 14 import java.io.FileReader; | 16 import java.io.FileReader; |
| 15 import java.io.IOException; | 17 import java.io.IOException; |
| 16 import java.util.ArrayList; | 18 import java.util.ArrayList; |
| 17 import java.util.Arrays; | 19 import java.util.Arrays; |
| 18 import java.util.HashMap; | 20 import java.util.HashMap; |
| 19 import java.util.List; | 21 import java.util.List; |
| 20 import java.util.Map; | 22 import java.util.Map; |
| 21 | 23 |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 while ((line = reader.readLine()) != null) { | 286 while ((line = reader.readLine()) != null) { |
| 285 if (line.contains(content)) { | 287 if (line.contains(content)) { |
| 286 reader.close(); | 288 reader.close(); |
| 287 return true; | 289 return true; |
| 288 } | 290 } |
| 289 } | 291 } |
| 290 reader.close(); | 292 reader.close(); |
| 291 return false; | 293 return false; |
| 292 } | 294 } |
| 293 } | 295 } |
| OLD | NEW |