Home
last modified time | relevance | path

Searched refs:extra_bars (Results 1 – 4 of 4) sorted by relevance

/external/libmojo/mojo/edk/js/tests/
Dsample_service_tests.js111 var extra_bars = new Array(3);
112 for (var i = 0; i < extra_bars.length; ++i) {
116 extra_bars[i] = new sample.Bar();
117 extra_bars[i].alpha = base;
118 extra_bars[i].beta = base + 20;
119 extra_bars[i].gamma = base + 40;
120 extra_bars[i].type = type;
136 foo.extra_bars = extra_bars;
159 expect(foo.extra_bars.length).toBe(3);
160 for (var i = 0; i < foo.extra_bars.length; ++i) {
[all …]
/external/libmojo/mojo/public/cpp/bindings/tests/
Dsample_service_unittest.cc47 std::vector<BarPtr> extra_bars(3); in MakeFoo() local
48 for (size_t i = 0; i < extra_bars.size(); ++i) { in MakeFoo()
56 extra_bars[i] = std::move(bar); in MakeFoo()
95 foo->extra_bars = std::move(extra_bars); in MakeFoo()
127 EXPECT_EQ(3u, foo.extra_bars->size()); in CheckFoo()
128 for (size_t i = 0; i < foo.extra_bars->size(); i++) { in CheckFoo()
131 EXPECT_EQ(base, (*foo.extra_bars)[i]->alpha) << i; in CheckFoo()
132 EXPECT_EQ(base + 20, (*foo.extra_bars)[i]->beta) << i; in CheckFoo()
133 EXPECT_EQ(base + 40, (*foo.extra_bars)[i]->gamma) << i; in CheckFoo()
134 EXPECT_EQ(type, (*foo.extra_bars)[i]->type) << i; in CheckFoo()
[all …]
/external/libmojo/mojo/public/js/
Dcodec_unittests.js82 foo.extra_bars = [
85 for (var i = 0; i < foo.extra_bars.length; ++i) {
86 foo.extra_bars[i].alpha = 1 * i;
87 foo.extra_bars[i].beta = 2 * i;
88 foo.extra_bars[i].gamma = 3 * i;
146 expect(foo2.extra_bars).toEqual(foo.extra_bars);
/external/libmojo/mojo/public/interfaces/bindings/tests/
Dsample_service.mojom36 array<Bar>? extra_bars@7;