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

Side by Side Diff: mojo/public/bindings/sample/sample_test.cc

Issue 60803002: Simpler bindings, fewer files! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move more to the .cc file Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <stdio.h> 5 #include <stdio.h>
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "mojo/public/bindings/sample/generated/sample_bar.h"
10 #include "mojo/public/bindings/sample/generated/sample_foo.h"
11 #include "mojo/public/bindings/sample/generated/sample_service.h" 9 #include "mojo/public/bindings/sample/generated/sample_service.h"
12 #include "mojo/public/bindings/sample/generated/sample_service_proxy.h"
13 #include "mojo/public/bindings/sample/generated/sample_service_stub.h"
14 10
15 namespace sample { 11 namespace sample {
16 12
17 static void PrintSpacer(int depth) { 13 static void PrintSpacer(int depth) {
18 for (int i = 0; i < depth; ++i) 14 for (int i = 0; i < depth; ++i)
19 printf(" "); 15 printf(" ");
20 } 16 }
21 17
22 static void Print(int depth, const char* name, bool value) { 18 static void Print(int depth, const char* name, bool value) {
23 PrintSpacer(depth); 19 PrintSpacer(depth);
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 172
177 service->Frobinate(foo, true, port); 173 service->Frobinate(foo, true, port);
178 } 174 }
179 175
180 } // namespace sample 176 } // namespace sample
181 177
182 int main() { 178 int main() {
183 sample::Exercise(); 179 sample::Exercise();
184 return 0; 180 return 0;
185 } 181 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698