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

Unified Diff: mojo/public/c/environment/tests/async_waiter_perftest_helpers.h

Issue 2235993002: Move mojo/public/c/environment/tests to mojo/public/c/tests/environment. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: oops Created 4 years, 4 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: mojo/public/c/environment/tests/async_waiter_perftest_helpers.h
diff --git a/mojo/public/c/environment/tests/async_waiter_perftest_helpers.h b/mojo/public/c/environment/tests/async_waiter_perftest_helpers.h
deleted file mode 100644
index 0a3c3e6cb0f99c6023d190e9c8658b16406970a4..0000000000000000000000000000000000000000
--- a/mojo/public/c/environment/tests/async_waiter_perftest_helpers.h
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 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.
-
-#ifndef MOJO_PUBLIC_C_ENVIRONMENT_TESTS_ASYNC_WAITER_PERFTEST_HELPERS_H_
-#define MOJO_PUBLIC_C_ENVIRONMENT_TESTS_ASYNC_WAITER_PERFTEST_HELPERS_H_
-
-#include <mojo/environment/async_waiter.h>
-#include <stdint.h>
-
-#include <functional>
-
-namespace mojo {
-namespace test {
-
-// Basic single-threaded perf test helper for |MojoAsyncWaiter|. This will keep
-// |num_handles| active async waits and activate them one at a time (with each
-// callback triggering the next). This sets up the test (setting up the initial
-// set of async waits), calls |run_loop_function|, and once that is done cleans
-// up. It returns the number of async waits completed. |run_loop_function|
-// should typically run the message/run loop and quit after some fixed amount of
-// time (it should probably measure the actual amount of time spent running, and
-// the return value should probably be normalized with respect to that).
-uint64_t DoAsyncWaiterPerfTest(const MojoAsyncWaiter* async_waiter,
- uint32_t num_handles,
- std::function<void()> run_loop_function);
-
-} // namespace test
-} // namespace mojo
-
-#endif // MOJO_PUBLIC_C_ENVIRONMENT_TESTS_ASYNC_WAITER_PERFTEST_HELPERS_H_
« no previous file with comments | « mojo/public/c/environment/tests/BUILD.gn ('k') | mojo/public/c/environment/tests/async_waiter_perftest_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698