| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |