Index: components/html_viewer/run_all_unittests.cc |
diff --git a/components/html_viewer/run_all_unittests.cc b/components/html_viewer/run_all_unittests.cc |
index 7743815daec9ce92e8c90dfd0ea37f69ac2ba66a..024ef9ae2534f4b39dd46b9222ff64dab94a9b48 100644 |
--- a/components/html_viewer/run_all_unittests.cc |
+++ b/components/html_viewer/run_all_unittests.cc |
@@ -8,9 +8,10 @@ |
#include "base/bind.h" |
#include "base/path_service.h" |
#include "base/test/launcher/unit_test_launcher.h" |
+#include "base/test/test_io_thread.h" |
#include "base/test/test_suite.h" |
#include "build/build_config.h" |
-#include "third_party/mojo/src/mojo/edk/embedder/embedder.h" |
+#include "mojo/edk/embedder/embedder.h" |
#include "ui/base/resource/resource_bundle.h" |
#include "ui/gfx/display.h" |
#include "ui/gfx/geometry/size.h" |
@@ -52,7 +53,8 @@ int main(int argc, char** argv) { |
ui::ResourceBundle::InitSharedInstanceWithPakPath(pak_path); |
#endif |
ui::mojo::UIInit ui_init(GetTestDisplays()); |
- mojo::embedder::Init(); |
+ base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart); |
+ mojo::edk::Init(test_io_thread.task_runner()); |
return base::LaunchUnitTests( |
argc, argv, |