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

Unified Diff: mojo/public/c/system/tests/core_perftest.cc

Issue 1779353002: Deprecate mojo/public/c/system/core.h. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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/public/c/system/core.h ('k') | mojo/public/c/system/tests/core_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/system/tests/core_perftest.cc
diff --git a/mojo/public/c/system/tests/core_perftest.cc b/mojo/public/c/system/tests/core_perftest.cc
index 29dbfc0b56b7bb9e8bb5cc5a5e720e99af167794..1013406e958682f2db99f202472832f5346a6932 100644
--- a/mojo/public/c/system/tests/core_perftest.cc
+++ b/mojo/public/c/system/tests/core_perftest.cc
@@ -4,8 +4,6 @@
// This tests the performance of the C API.
-#include "mojo/public/c/system/core.h"
-
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
@@ -14,7 +12,9 @@
#include <functional>
#include <thread>
-#include "mojo/public/cpp/system/functions.h"
+#include "mojo/public/c/system/functions.h"
+#include "mojo/public/c/system/message_pipe.h"
+#include "mojo/public/c/system/types.h"
#include "mojo/public/cpp/system/macros.h"
#include "mojo/public/cpp/test_support/test_support.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -30,7 +30,7 @@ void IterateAndReportPerf(const char* test_name,
static const size_t kGranularity = 100u;
static const MojoTimeTicks kPerftestTimeMicroseconds = 3 * 1000000;
- const MojoTimeTicks start_time = mojo::GetTimeTicksNow();
+ const MojoTimeTicks start_time = MojoGetTimeTicksNow();
MojoTimeTicks end_time;
size_t iterations = 0u;
do {
@@ -38,7 +38,7 @@ void IterateAndReportPerf(const char* test_name,
single_iteration();
iterations += kGranularity;
- end_time = mojo::GetTimeTicksNow();
+ end_time = MojoGetTimeTicksNow();
} while (end_time - start_time < kPerftestTimeMicroseconds);
mojo::test::LogPerfResult(test_name, sub_test_name,
« no previous file with comments | « mojo/public/c/system/core.h ('k') | mojo/public/c/system/tests/core_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698