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

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

Issue 53173008: Add mojom_bindings_generator.gypi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more rename 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
« no previous file with comments | « mojo/public/bindings/sample/sample_service.mojom ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <string.h> 6 #include <string.h>
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <string> 9 #include <string>
10 10
11 #include "mojo/public/bindings/sample/generated/sample_service.h" 11 #include "mojom/sample_service.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace sample { 14 namespace sample {
15 15
16 // Make a sample |Foo| in the given |ScratchBuffer|. 16 // Make a sample |Foo| in the given |ScratchBuffer|.
17 Foo* MakeFoo(mojo::ScratchBuffer* buf) { 17 Foo* MakeFoo(mojo::ScratchBuffer* buf) {
18 const std::string kName("foopy"); 18 const std::string kName("foopy");
19 mojo::String* name = mojo::String::NewCopyOf(buf, kName); 19 mojo::String* name = mojo::String::NewCopyOf(buf, kName);
20 20
21 Bar* bar = Bar::New(buf); 21 Bar* bar = Bar::New(buf);
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 mojo::ScratchBuffer buf; 224 mojo::ScratchBuffer buf;
225 Foo* foo = MakeFoo(&buf); 225 Foo* foo = MakeFoo(&buf);
226 CheckFoo(foo); 226 CheckFoo(foo);
227 227
228 mojo::Handle port = { 10 }; 228 mojo::Handle port = { 10 };
229 229
230 service->Frobinate(foo, true, port); 230 service->Frobinate(foo, true, port);
231 } 231 }
232 232
233 } // namespace sample 233 } // namespace sample
OLDNEW
« no previous file with comments | « mojo/public/bindings/sample/sample_service.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698