Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: net/android/javatests/src/org/chromium/net/AndroidProxyConfigServiceTestUtil.java

Issue 2812963002: [Cronet] Move initialization to a new thread rather than the UI thread. (Closed)
Patch Set: update tests to account for mRegistered change Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698