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

Side by Side Diff: components/cronet/android/test/network_change_notifier_util.cc

Issue 2215903002: Add missing using declarations in cronet code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-cronet
Patch Set: Created 4 years, 4 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
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 #include "network_change_notifier_util.h" 5 #include "network_change_notifier_util.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "jni/NetworkChangeNotifierUtil_jni.h" 11 #include "jni/NetworkChangeNotifierUtil_jni.h"
12 #include "net/base/network_change_notifier.h" 12 #include "net/base/network_change_notifier.h"
13 13
14 using base::android::JavaParamRef;
15
14 namespace cronet { 16 namespace cronet {
15 17
16 namespace { 18 namespace {
17 19
18 // An IPAddressObserver to test whether Cronet can receive notification 20 // An IPAddressObserver to test whether Cronet can receive notification
19 // when network changes. 21 // when network changes.
20 class TestIPAddressObserver 22 class TestIPAddressObserver
21 : public net::NetworkChangeNotifier::IPAddressObserver { 23 : public net::NetworkChangeNotifier::IPAddressObserver {
22 public: 24 public:
23 TestIPAddressObserver() : ip_address_changed_(false) { 25 TestIPAddressObserver() : ip_address_changed_(false) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 net::NetworkChangeNotifier::RemoveIPAddressObserver(&test_observer); 61 net::NetworkChangeNotifier::RemoveIPAddressObserver(&test_observer);
60 62
61 return test_observer.ip_address_changed(); 63 return test_observer.ip_address_changed();
62 } 64 }
63 65
64 bool RegisterNetworkChangeNotifierUtil(JNIEnv* jenv) { 66 bool RegisterNetworkChangeNotifierUtil(JNIEnv* jenv) {
65 return RegisterNativesImpl(jenv); 67 return RegisterNativesImpl(jenv);
66 } 68 }
67 69
68 } // namespace cronet 70 } // namespace cronet
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698