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

Unified Diff: mojo/public/cpp/bindings/tests/bindings_perftest.cc

Issue 2250143002: clang-format bindings_perftest.cc. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/tests/bindings_perftest.cc
diff --git a/mojo/public/cpp/bindings/tests/bindings_perftest.cc b/mojo/public/cpp/bindings/tests/bindings_perftest.cc
index 7cbde8a4c8021351c7b8411231156fbb7bf4b4e2..11b92ba44b47e1f74d4ae95d9d5b3bdc3328d696 100644
--- a/mojo/public/cpp/bindings/tests/bindings_perftest.cc
+++ b/mojo/public/cpp/bindings/tests/bindings_perftest.cc
@@ -50,8 +50,7 @@ class PingPongTest {
};
PingPongTest::PingPongTest(test::PingServicePtr service)
- : service_(service.Pass()) {
-}
+ : service_(service.Pass()) {}
void PingPongTest::Run(unsigned int iterations) {
iterations_to_run_ = iterations;
@@ -72,9 +71,7 @@ void PingPongTest::OnPingDone() {
}
struct BoundPingService {
- BoundPingService() : binding(&impl) {
- binding.Bind(GetProxy(&service));
- }
+ BoundPingService() : binding(&impl) { binding.Bind(GetProxy(&service)); }
PingServiceImpl impl;
test::PingServicePtr service;
@@ -97,10 +94,9 @@ TEST_F(MojoBindingsPerftest, InProcessPingPong) {
const MojoTimeTicks start_time = MojoGetTimeTicksNow();
test.Run(kIterations);
const MojoTimeTicks end_time = MojoGetTimeTicksNow();
- test::LogPerfResult(
- "InProcessPingPong", "0_Inactive",
- kIterations / MojoTicksToSeconds(end_time - start_time),
- "pings/second");
+ test::LogPerfResult("InProcessPingPong", "0_Inactive",
+ kIterations / MojoTicksToSeconds(end_time - start_time),
+ "pings/second");
}
{
@@ -112,10 +108,9 @@ TEST_F(MojoBindingsPerftest, InProcessPingPong) {
const MojoTimeTicks start_time = MojoGetTimeTicksNow();
test.Run(kIterations);
const MojoTimeTicks end_time = MojoGetTimeTicksNow();
- test::LogPerfResult(
- "InProcessPingPong", "1000_Inactive",
- kIterations / MojoTicksToSeconds(end_time - start_time),
- "pings/second");
+ test::LogPerfResult("InProcessPingPong", "1000_Inactive",
+ kIterations / MojoTicksToSeconds(end_time - start_time),
+ "pings/second");
delete[] inactive_services;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698