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

Unified Diff: components/download/internal/scheduler/network_listener_unittest.cc

Issue 2888433004: scheduler: Put unit test code in anonymous namespace. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/download/internal/scheduler/battery_listener_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/download/internal/scheduler/network_listener_unittest.cc
diff --git a/components/download/internal/scheduler/network_listener_unittest.cc b/components/download/internal/scheduler/network_listener_unittest.cc
index 189fa611fba3a0ad85a06b73c01e1841902bc31e..d488024ec04c997224be5cf93b626185935362f1 100644
--- a/components/download/internal/scheduler/network_listener_unittest.cc
+++ b/components/download/internal/scheduler/network_listener_unittest.cc
@@ -14,6 +14,7 @@ using ConnectionTypeObserver =
using ConnectionType = net::NetworkChangeNotifier::ConnectionType;
namespace download {
+namespace {
// NetworkChangeNotifier that can change network type in tests.
class TestNetworkChangeNotifier : public net::NetworkChangeNotifier {
@@ -94,4 +95,5 @@ TEST_F(NetworkListenerTest, NotifyObserverNetworkChange) {
ChangeNetworkType(ConnectionType::CONNECTION_ETHERNET);
}
+} // namespace
} // namespace download
« no previous file with comments | « components/download/internal/scheduler/battery_listener_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698