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

Unified Diff: mojo/environment/BUILD.gn

Issue 2142393002: Add perf tests for async waits using base::MessageLoop. (Closed) Base URL: https://github.com/domokit/mojo.git@work791_async_waiter_perftest
Patch Set: gah Created 4 years, 5 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
« no previous file with comments | « mojo/BUILD.gn ('k') | mojo/environment/async_wait_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/environment/BUILD.gn
diff --git a/mojo/environment/BUILD.gn b/mojo/environment/BUILD.gn
index dc21a24da5b428948d368d7d2aacc9c0c18fa1f9..75fd77efdad5936fe717159f58ce1132b05c6900 100644
--- a/mojo/environment/BUILD.gn
+++ b/mojo/environment/BUILD.gn
@@ -2,6 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//mojo/public/mojo_application.gni")
+import("//testing/test.gni")
+
source_set("chromium") {
sources = [
"default_async_waiter.cc",
@@ -30,3 +33,24 @@ source_set("chromium") {
"//mojo/public/cpp/system",
]
}
+
+# TODO(vtl): Just build this as an executable/non-apptest for now. (This
+# requires depending //mojo/edk/test:run_all_perftests, which is undesirable.
+# However, we don't have a good way to automatically run perf tests that are
+# apptests and extract results.)
+test("mojo_environment_perftests") {
+ sources = [
+ "async_wait_perftest.cc",
+ ]
+
+ deps = [
+ ":chromium",
+ "//base",
+ "//base/test:test_support",
+ "//mojo/edk/test:run_all_perftests",
+ "//mojo/message_pump",
+ "//mojo/public/c/environment/tests:perftest_helpers",
+ "//mojo/public/cpp/environment",
+ "//testing/gtest",
+ ]
+}
« no previous file with comments | « mojo/BUILD.gn ('k') | mojo/environment/async_wait_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698