diff options
author | kinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-27 07:41:59 +0000 |
---|---|---|
committer | kinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-27 07:41:59 +0000 |
commit | 1e253b298c2f1a31d024595832ffb22d0a85e1c3 (patch) | |
tree | 1e4e58872ccb1629d2686952b54af752838326dd /google_apis | |
parent | 55d14958e7edb5b3768fd4e95a6ba248e05e49a9 (diff) | |
download | chromium_src-1e253b298c2f1a31d024595832ffb22d0a85e1c3.zip chromium_src-1e253b298c2f1a31d024595832ffb22d0a85e1c3.tar.gz chromium_src-1e253b298c2f1a31d024595832ffb22d0a85e1c3.tar.bz2 |
Fix memory leak in OAuth2TokenServiceTest.
The message loop must be run till the end for running clean up tasks.
BUG=279634
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/23481007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219733 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'google_apis')
-rw-r--r-- | google_apis/gaia/oauth2_token_service_unittest.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/google_apis/gaia/oauth2_token_service_unittest.cc b/google_apis/gaia/oauth2_token_service_unittest.cc index 9550fc2..9937268 100644 --- a/google_apis/gaia/oauth2_token_service_unittest.cc +++ b/google_apis/gaia/oauth2_token_service_unittest.cc @@ -75,6 +75,11 @@ class OAuth2TokenServiceTest : public testing::Test { message_loop_.message_loop_proxy()))); } + virtual void TearDown() OVERRIDE { + // Makes sure that all the clean up tasks are run. + base::RunLoop().RunUntilIdle(); + } + protected: base::MessageLoopForIO message_loop_; // net:: stuff needs IO message loop. net::TestURLFetcherFactory factory_; |