Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Unified Diff: pdf/run_all_unittests.cc

Issue 2349753003: Improve linearized pdf load/show time. (Closed)
Patch Set: remove useless code. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698