OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 org.chromium.base.JNINamespace; | 7 import org.chromium.base.annotations.JNINamespace; |
8 | 8 |
9 /** | 9 /** |
10 * Wrapper class that contains utility methods to test network change notifier. | 10 * Wrapper class that contains utility methods to test network change notifier. |
11 */ | 11 */ |
12 @JNINamespace("cronet") | 12 @JNINamespace("cronet") |
13 public final class NetworkChangeNotifierUtil { | 13 public final class NetworkChangeNotifierUtil { |
14 public static boolean isTestIPAddressObserverCalled() { | 14 public static boolean isTestIPAddressObserverCalled() { |
15 return nativeIsTestIPAddressObserverCalled(); | 15 return nativeIsTestIPAddressObserverCalled(); |
16 } | 16 } |
17 | 17 |
18 private static native boolean nativeIsTestIPAddressObserverCalled(); | 18 private static native boolean nativeIsTestIPAddressObserverCalled(); |
19 } | 19 } |
OLD | NEW |