blob: 4c0ae3ab1a2a829e48bf984042f70a027de99bb4 [file] [log] [blame]
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.net;
import android.os.Looper;
import org.chromium.base.annotations.CalledByNative;
/**
* Utility functions for testing features implemented in ProxyConfigServiceAndroid.
*/
public class AndroidProxyConfigServiceTestUtil {
/**
* Helper for tests that prepares the Looper on the current thread.
*/
@CalledByNative
private static void prepareLooper() {
if (Looper.myLooper() == null) {
Looper.prepare();
}
}
}