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

Unified Diff: net/base/network_change_notifier.h

Issue 10928193: Add native-side unit test for Android NetworkChangeNotifier (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed Java-side observers for now Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: net/base/network_change_notifier.h
diff --git a/net/base/network_change_notifier.h b/net/base/network_change_notifier.h
index 5a40721848ad03582c94be718533fa68d35c769b..494cb04dc6fa0105aadd23ec2cbd3d438c377b51 100644
--- a/net/base/network_change_notifier.h
+++ b/net/base/network_change_notifier.h
@@ -17,6 +17,12 @@ struct DnsConfig;
class HistogramWatcher;
class NetworkChangeNotifierFactory;
+#if defined(OS_ANDROID)
szym 2012/09/14 19:07:29 You shouldn't need to forward declare for friend d
szym 2012/09/14 19:26:34 :( Apparently this is not true if you want to frie
szym 2012/09/14 19:28:38 Still, I wonder if you need #if defined.
gone 2012/09/15 01:01:55 Seems like it's fine to remove. Had some issues w
+namespace android {
+class NetworkChangeNotifierAndroidTest;
+}
+#endif
+
#if defined(OS_LINUX)
namespace internal {
class AddressTrackerLinux;
@@ -197,6 +203,10 @@ class NET_EXPORT NetworkChangeNotifier {
friend class NetworkChangeNotifierLinuxTest;
friend class NetworkChangeNotifierWinTest;
+#if defined(OS_ANDROID)
szym 2012/09/14 19:07:29 No need for #if here.
gone 2012/09/15 01:01:55 Done.
+ friend class net::android::NetworkChangeNotifierAndroidTest;
+#endif
+
class NetworkState;
// Allows a second NetworkChangeNotifier to be created for unit testing, so

Powered by Google App Engine
This is Rietveld 408576698