| 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;
|
| }
|
|
|