Index: sandbox/win/tests/unit_tests/unit_tests.cc |
diff --git a/sandbox/win/tests/unit_tests/unit_tests.cc b/sandbox/win/tests/unit_tests/unit_tests.cc |
index a9623db580292ed3868911b3c3749f0f37f58beb..00ad37915311287d5023917768e687d45d90b9a0 100644 |
--- a/sandbox/win/tests/unit_tests/unit_tests.cc |
+++ b/sandbox/win/tests/unit_tests/unit_tests.cc |
@@ -2,6 +2,9 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "base/bind.h" |
+#include "base/test/launcher/unit_test_launcher.h" |
+#include "base/test/test_suite.h" |
#include "testing/gtest/include/gtest/gtest.h" |
int wmain(int argc, wchar_t **argv) { |
@@ -11,6 +14,8 @@ int wmain(int argc, wchar_t **argv) { |
return 0; |
} |
- testing::InitGoogleTest(&argc, argv); |
- return RUN_ALL_TESTS(); |
+ TestSuite test_suite(argc, argv); |
+ return base::LaunchUnitTests( |
+ argc, argv, false, base::Bind( |
+ &base::TestSuite::Run, base::Unretained(&test_suite))); |
} |