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

Unified Diff: mojo/public/cpp/bindings/tests/wtf_types_unittest.cc

Issue 2689513003: Add field-initializing constructors to generated mojo structs. (Closed)
Patch Set: rebase Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: mojo/public/cpp/bindings/tests/wtf_types_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/wtf_types_unittest.cc b/mojo/public/cpp/bindings/tests/wtf_types_unittest.cc
index 039308b551b145ebeab8a3d64b0c119842925ec2..363ef7cdab78387f299674cb7a877cc504c4e461 100644
--- a/mojo/public/cpp/bindings/tests/wtf_types_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/wtf_types_unittest.cc
@@ -158,9 +158,7 @@ TEST_F(WTFTypesTest, Serialization_WTFVectorToStlVector) {
}
TEST_F(WTFTypesTest, Serialization_PublicAPI) {
- blink::TestWTFStructPtr input(blink::TestWTFStruct::New());
- input->str = kHelloWorld;
- input->integer = 42;
+ blink::TestWTFStructPtr input(blink::TestWTFStruct::New(kHelloWorld, 42));
blink::TestWTFStructPtr cloned_input = input.Clone();
« no previous file with comments | « mojo/public/cpp/bindings/tests/wtf_hash_unittest.cc ('k') | mojo/public/interfaces/bindings/tests/test_structs.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698