OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.net; |
| 6 |
| 7 import android.os.Looper; |
| 8 |
| 9 import org.chromium.base.annotations.CalledByNative; |
| 10 |
| 11 /** |
| 12 * Utility functions for testing features implemented in ProxyConfigServiceAndro
id. |
| 13 */ |
| 14 public class AndroidProxyConfigServiceTestUtil { |
| 15 /** |
| 16 * Helper for tests that prepares the Looper on the current thread. |
| 17 */ |
| 18 @CalledByNative |
| 19 private static void prepareLooper() { |
| 20 Looper.prepare(); |
| 21 } |
| 22 } |
OLD | NEW |