Chromium Code Reviews| Index: pdf/run_all_unittests.cc |
| diff --git a/base/test/run_all_unittests.cc b/pdf/run_all_unittests.cc |
| similarity index 59% |
| copy from base/test/run_all_unittests.cc |
| copy to pdf/run_all_unittests.cc |
| index 05f30120c2fad288d31489cb8579a399c433e78f..538644dfb56bd28d3f59c79805899ceba6787b2f 100644 |
| --- a/base/test/run_all_unittests.cc |
| +++ b/pdf/run_all_unittests.cc |
| @@ -1,15 +1,25 @@ |
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| // 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 "build/build_config.h" |
| + |
| +// ppapi_cpp won't link w/o this. |
| +namespace pp { |
| + |
| +class Module; |
| + |
| +Module* CreateModule() { |
| + return nullptr; |
| +} |
| + |
| +} // namespace pp |
| int main(int argc, char** argv) { |
| base::TestSuite test_suite(argc, argv); |
| - return base::LaunchUnitTests( |
| + int res = base::LaunchUnitTests( |
|
Lei Zhang
2016/10/05 07:18:08
Why bother with the variable?
snake
2016/10/05 14:14:10
Done.
|
| argc, argv, |
| base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite))); |
| + return res; |
| } |