Home | History | Annotate | Download | only in chromeos-dbus-bindings

Lines Matching refs:parser

22   NameParser parser{"foo"};
23 EXPECT_EQ("foo", parser.type_name);
24 EXPECT_TRUE(parser.namespaces.empty());
28 NameParser parser{"foo.bar.FooBar"};
29 EXPECT_EQ("FooBar", parser.type_name);
30 EXPECT_THAT(parser.namespaces, testing::ElementsAre("foo", "bar"));
34 NameParser parser{"foo.bar.FooBar"};
35 EXPECT_EQ("foo::bar::FooBar", parser.MakeFullCppName());
39 NameParser parser{"foo.bar.FooBar"};
40 EXPECT_EQ("foo_bar", parser.MakeVariableName());
44 NameParser parser{"foo"};
45 EXPECT_EQ("foo", parser.MakeVariableName());
49 NameParser parser{"fooBarBaz"};
50 EXPECT_EQ("foo_bar_baz", parser.MakeVariableName());
54 NameParser parser{"UUID"};
55 EXPECT_EQ("uuid", parser.MakeVariableName());
59 NameParser parser{"FOObarBaz"};
60 EXPECT_EQ("foobar_baz", parser.MakeVariableName());
64 NameParser parser{"foo.bar.FooBar"};
65 EXPECT_EQ("FooBarInterface", parser.MakeInterfaceName(false));
66 EXPECT_EQ("foo::bar::FooBarInterface", parser.MakeInterfaceName(true));
70 NameParser parser{"foo.bar.FooBar"};
71 EXPECT_EQ("FooBarProxy", parser.MakeProxyName(false));
72 EXPECT_EQ("foo::bar::FooBarProxy", parser.MakeProxyName(true));
76 NameParser parser{"foo.bar.FooBar"};
77 EXPECT_EQ("FooBarAdaptor", parser.MakeAdaptorName(false));
78 EXPECT_EQ("foo::bar::FooBarAdaptor", parser.MakeAdaptorName(true));
85 NameParser parser{"foo.bar.FooBar"};
87 parser.AddOpenNamespaces(&text, false);
96 NameParser parser{"foo.bar.FooBar"};
98 parser.AddOpenNamespaces(&text, true);
106 NameParser parser{"foo.bar.FooBar"};
108 parser.AddCloseNamespaces(&text, false);
117 NameParser parser{"foo.bar.FooBar"};
119 parser.AddCloseNamespaces(&text, true);