diff options
Diffstat (limited to 'chrome/browser/sync/profile_sync_service_unittest.cc')
| -rw-r--r-- | chrome/browser/sync/profile_sync_service_unittest.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/sync/profile_sync_service_unittest.cc b/chrome/browser/sync/profile_sync_service_unittest.cc index 8d2f535..892c96d 100644 --- a/chrome/browser/sync/profile_sync_service_unittest.cc +++ b/chrome/browser/sync/profile_sync_service_unittest.cc @@ -8,6 +8,7 @@ #include "testing/gtest/include/gtest/gtest.h" #include "base/command_line.h" +#include "base/message_loop.h" #include "base/string_util.h" #include "base/string16.h" #include "chrome/browser/bookmarks/bookmark_model.h" @@ -279,6 +280,9 @@ class ProfileSyncServiceTest : public testing::Test { // Kill the service before the profile. service_.reset(); profile_.reset(); + + // Ensure that the sync objects destruct to avoid memory leaks. + MessageLoop::current()->RunAllPending(); } ModelAssociator* associator() { |
