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

Unified Diff: chrome/browser/chromeos/net/network_throttling_observer_unittest.cc

Issue 2364703002: Add network throttling as an enterprise policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add network bandwidth throttling as an enterprise policy Created 4 years, 2 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 | « chrome/browser/chromeos/net/network_throttling_observer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/net/network_throttling_observer_unittest.cc
diff --git a/chrome/browser/chromeos/net/network_throttling_observer_unittest.cc b/chrome/browser/chromeos/net/network_throttling_observer_unittest.cc
index 7cbcfc27a562b55cf0aaea6d1521050bac060769..40f2b568f51210630e08703b54c9186b2d506fc2 100644
--- a/chrome/browser/chromeos/net/network_throttling_observer_unittest.cc
+++ b/chrome/browser/chromeos/net/network_throttling_observer_unittest.cc
@@ -37,10 +37,10 @@ class NetworkThrottlingObserverTest : public ::testing::Test {
local_state_ = new TestingPrefServiceSimple();
local_state_->registry()->RegisterDictionaryPref(
prefs::kNetworkThrottlingEnabled);
- observer_.reset(new NetworkThrottlingObserver(local_state_));
+ observer_ = base::MakeUnique<NetworkThrottlingObserver>(local_state_);
}
- ~NetworkThrottlingObserverTest() override { delete mock_manager_client_; }
+ ~NetworkThrottlingObserverTest() override { DBusThreadManager::Shutdown(); }
std::unique_ptr<base::MessageLoop> message_loop_;
std::unique_ptr<NetworkThrottlingObserver> observer_;
« no previous file with comments | « chrome/browser/chromeos/net/network_throttling_observer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698