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

Unified Diff: chrome/browser/chromeos/settings/device_oauth2_token_service_unittest.cc

Issue 14367006: Fix unit test leak in DeviceOAuth2TokenServiceTest. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 7 years, 8 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 | « no previous file | tools/valgrind/memcheck/suppressions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/settings/device_oauth2_token_service_unittest.cc
diff --git a/chrome/browser/chromeos/settings/device_oauth2_token_service_unittest.cc b/chrome/browser/chromeos/settings/device_oauth2_token_service_unittest.cc
index 61c8c578d45296115e0194585d3668068f0e9dcd..ddead26131561f7145b54f00817f0b823db40c12 100644
--- a/chrome/browser/chromeos/settings/device_oauth2_token_service_unittest.cc
+++ b/chrome/browser/chromeos/settings/device_oauth2_token_service_unittest.cc
@@ -61,9 +61,7 @@ TEST_F(DeviceOAuth2TokenServiceTest, SaveEncryptedToken) {
.WillOnce(Return("test-token"));
DeviceOAuth2TokenService oauth2_service(
- new net::TestURLRequestContextGetter(
- content::BrowserThread::GetMessageLoopProxyForThread(
- content::BrowserThread::IO)),
+ new net::TestURLRequestContextGetter(message_loop_.message_loop_proxy()),
Mattias Nissler (ping if slow) 2013/04/19 17:45:19 I don't see how this fixes the problem, can you en
David Roche 2013/04/19 22:05:03 So, the key is in URLRequestContextGetter::OnDestr
scoped_testing_local_state_.Get());
ASSERT_EQ("", oauth2_service.GetRefreshToken());
« no previous file with comments | « no previous file | tools/valgrind/memcheck/suppressions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698