Chromium Code Reviews| Index: chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc |
| diff --git a/chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc b/chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc |
| index bd9c5a3f63e083def769f55087ccba0e056f7bea..037915c9509c4c44b107943d7bbe31200bbd11d4 100644 |
| --- a/chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc |
| +++ b/chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc |
| @@ -10,10 +10,11 @@ |
| #include "base/files/file_util.h" |
| #include "base/files/scoped_temp_dir.h" |
| #include "base/message_loop/message_loop.h" |
| -#include "base/message_loop/message_loop_proxy.h" |
| #include "base/path_service.h" |
| #include "base/run_loop.h" |
| +#include "base/single_thread_task_runner.h" |
|
benwells
2015/05/07 00:05:26
Nit: this include isn't needed.
Pranay
2015/05/07 03:16:50
Done.
|
| #include "base/strings/stringprintf.h" |
| +#include "base/thread_task_runner_handle.h" |
| #include "base/values.h" |
| #include "base/version.h" |
| #include "chrome/browser/extensions/external_provider_impl.h" |
| @@ -142,7 +143,7 @@ void DeviceLocalAccountExternalPolicyLoaderTest::SetUp() { |
| cache_dir_ = temp_dir_.path().Append(kCacheDir); |
| ASSERT_TRUE(base::CreateDirectoryAndGetError(cache_dir_, NULL)); |
| request_context_getter_ = |
| - new net::TestURLRequestContextGetter(base::MessageLoopProxy::current()); |
| + new net::TestURLRequestContextGetter(base::ThreadTaskRunnerHandle::Get()); |
| TestingBrowserProcess::GetGlobal()->SetSystemRequestContext( |
| request_context_getter_.get()); |
| ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &test_dir_)); |
| @@ -211,7 +212,7 @@ TEST_F(DeviceLocalAccountExternalPolicyLoaderTest, ForceInstallListEmpty) { |
| // Start the cache. Verify that the loader announces an empty extension list. |
| EXPECT_CALL(visitor_, OnExternalProviderReady(provider_.get())) |
| .Times(1); |
| - loader_->StartCache(base::MessageLoopProxy::current()); |
| + loader_->StartCache(base::ThreadTaskRunnerHandle::Get()); |
| base::RunLoop().RunUntilIdle(); |
| VerifyAndResetVisitorCallExpectations(); |
| @@ -237,7 +238,7 @@ TEST_F(DeviceLocalAccountExternalPolicyLoaderTest, ForceInstallListSet) { |
| SetForceInstallListPolicy(); |
| // Start the cache. |
| - loader_->StartCache(base::MessageLoopProxy::current()); |
| + loader_->StartCache(base::ThreadTaskRunnerHandle::Get()); |
| // Spin the loop, allowing the loader to process the force-install list. |
| // Verify that the loader announces an empty extension list. |