summaryrefslogtreecommitdiffstats
path: root/google_apis
diff options
context:
space:
mode:
authorkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-27 07:41:59 +0000
committerkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-27 07:41:59 +0000
commit1e253b298c2f1a31d024595832ffb22d0a85e1c3 (patch)
tree1e4e58872ccb1629d2686952b54af752838326dd /google_apis
parent55d14958e7edb5b3768fd4e95a6ba248e05e49a9 (diff)
downloadchromium_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.cc5
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_;