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.support.test.filters.SmallTest; |
9 | 9 |
10 import org.json.JSONException; | 10 import org.json.JSONException; |
11 import org.json.JSONObject; | 11 import org.json.JSONObject; |
12 | 12 |
13 import org.chromium.base.test.util.Feature; | 13 import org.chromium.base.test.util.Feature; |
14 import org.chromium.net.impl.CronetUrlRequestContext; | 14 import org.chromium.net.impl.CronetUrlRequestContext; |
15 | 15 |
16 import java.io.BufferedReader; | 16 import java.io.BufferedReader; |
17 import java.io.FileReader; | 17 import java.io.FileReader; |
18 import java.io.IOException; | 18 import java.io.IOException; |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 while ((line = reader.readLine()) != null) { | 189 while ((line = reader.readLine()) != null) { |
190 if (line.contains(content)) { | 190 if (line.contains(content)) { |
191 reader.close(); | 191 reader.close(); |
192 return true; | 192 return true; |
193 } | 193 } |
194 } | 194 } |
195 reader.close(); | 195 reader.close(); |
196 return false; | 196 return false; |
197 } | 197 } |
198 } | 198 } |
OLD | NEW |