Commit 65112b16 authored by ygorshenin's avatar ygorshenin Committed by Commit bot

BlockingPool is flushed in DeviceOAuth2TokenServiceTest to prevent memory leaks.

BUG=381584
TEST=unit_tests:DeviceOAuth2TokenServiceTest.*

Review URL: https://codereview.chromium.org/552363002

Cr-Commit-Position: refs/heads/master@{#294158}
parent 5cd64127
......@@ -7,6 +7,7 @@
#include "base/message_loop/message_loop.h"
#include "base/prefs/testing_pref_service.h"
#include "base/run_loop.h"
#include "base/threading/sequenced_worker_pool.h"
#include "chrome/browser/chromeos/policy/device_policy_builder.h"
#include "chrome/browser/chromeos/settings/cros_settings.h"
#include "chrome/browser/chromeos/settings/device_settings_service.h"
......@@ -97,6 +98,7 @@ class DeviceOAuth2TokenServiceTest : public testing::Test {
virtual void TearDown() OVERRIDE {
CrosSettings::Shutdown();
TestingBrowserProcess::GetGlobal()->SetBrowserPolicyConnector(NULL);
content::BrowserThread::GetBlockingPool()->FlushForTesting();
DeviceSettingsService::Get()->UnsetSessionManager();
DeviceSettingsService::Shutdown();
SystemSaltGetter::Shutdown();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment