| Index: mojo/public/tests/bindings/sample_service_unittest.cc
|
| diff --git a/mojo/public/tests/bindings/sample_service_unittest.cc b/mojo/public/tests/bindings/sample_service_unittest.cc
|
| index 6f3a2bac3d222f28e06373f71b65d6a64bbed027..b6a75e5d283aab1801f21108da7876891bbc3c98 100644
|
| --- a/mojo/public/tests/bindings/sample_service_unittest.cc
|
| +++ b/mojo/public/tests/bindings/sample_service_unittest.cc
|
| @@ -309,4 +309,18 @@ TEST(BindingsSampleTest, Basic) {
|
| service->Frobinate(foo, Service::BAZ_EXTRA, port0.Pass());
|
| }
|
|
|
| +TEST(BindingsSampleTest, DefaultValues) {
|
| + mojo::Environment env;
|
| + SimpleMessageReceiver receiver;
|
| + mojo::AllocationScope scope;
|
| +
|
| + Bar bar = Bar::Builder().Finish();
|
| + EXPECT_EQ(255, bar.alpha());
|
| +
|
| + Foo foo = Foo::Builder().Finish();
|
| + ASSERT_FALSE(foo.name().is_null());
|
| + EXPECT_EQ("Fooby", foo.name().To<std::string>());
|
| + EXPECT_TRUE(foo.a());
|
| +}
|
| +
|
| } // namespace sample
|
|
|