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

Side by Side Diff: services/js/pingpong_apptest.cc

Issue 2010283006: Almost done: ApplicationDelegate -> ApplicationImplBase conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@work798-x-work797-x-work796_no_run_main_app
Patch Set: rebased Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « services/java_handler/java_handler.cc ('k') | services/js/test/js_application_test_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/public/cpp/application/connect.h" 5 #include "mojo/public/cpp/application/connect.h"
6 #include "mojo/public/cpp/bindings/binding.h"
6 #include "services/js/test/js_application_test_base.h" 7 #include "services/js/test/js_application_test_base.h"
7 #include "services/js/test/pingpong_service.mojom.h" 8 #include "services/js/test/pingpong_service.mojom.h"
8 9
9 namespace js { 10 namespace js {
10 namespace { 11 namespace {
11 12
12 class PingPongClientImpl : public PingPongClient { 13 class PingPongClientImpl : public PingPongClient {
13 public: 14 public:
14 PingPongClientImpl() : last_pong_value_(0), binding_(this) {}; 15 PingPongClientImpl() : last_pong_value_(0), binding_(this) {};
15 ~PingPongClientImpl() override {}; 16 ~PingPongClientImpl() override {};
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 EXPECT_EQ(2, client.WaitForPongValue()); 116 EXPECT_EQ(2, client.WaitForPongValue());
116 target->Ping(100); 117 target->Ping(100);
117 EXPECT_EQ(101, client.WaitForPongValue()); 118 EXPECT_EQ(101, client.WaitForPongValue());
118 target->Quit(); 119 target->Quit();
119 pingpong_service_->Quit(); 120 pingpong_service_->Quit();
120 } 121 }
121 122
122 123
123 } // namespace 124 } // namespace
124 } // namespace js 125 } // namespace js
OLDNEW
« no previous file with comments | « services/java_handler/java_handler.cc ('k') | services/js/test/js_application_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698