Index: components/sync/engine_impl/sync_encryption_handler_impl_unittest.cc |
diff --git a/components/sync/engine_impl/sync_encryption_handler_impl_unittest.cc b/components/sync/engine_impl/sync_encryption_handler_impl_unittest.cc |
index 3abb3e1baaa3a876d7e6c517a607bef03be680ba..237bd20c583028133913d649e8609f56e67d9731 100644 |
--- a/components/sync/engine_impl/sync_encryption_handler_impl_unittest.cc |
+++ b/components/sync/engine_impl/sync_encryption_handler_impl_unittest.cc |
@@ -12,6 +12,7 @@ |
#include "base/json/json_string_value_serializer.h" |
#include "base/memory/ptr_util.h" |
#include "base/run_loop.h" |
+#include "base/test/scoped_task_environment.h" |
#include "base/tracked_objects.h" |
#include "components/sync/base/fake_encryptor.h" |
#include "components/sync/base/model_type_test_util.h" |
@@ -357,7 +358,7 @@ class SyncEncryptionHandlerImplTest : public ::testing::Test { |
std::unique_ptr<SyncEncryptionHandlerImpl> encryption_handler_; |
StrictMock<SyncEncryptionHandlerObserverMock> observer_; |
TestIdFactory ids_; |
- base::MessageLoop message_loop_; |
+ base::test::ScopedTaskEnvironment scoped_task_environment_; |
}; |
// Verify that the encrypted types are being written to and read from the |