Home | History | Annotate | Download | only in extensions

Lines Matching refs:parser

120   UpdateManifest parser;
123 EXPECT_FALSE(parser.Parse(""));
124 EXPECT_FALSE(parser.errors().empty());
126 EXPECT_TRUE(parser.Parse(kMissingAppId));
127 EXPECT_TRUE(parser.results().list.empty());
128 EXPECT_FALSE(parser.errors().empty());
130 EXPECT_TRUE(parser.Parse(kInvalidCodebase));
131 EXPECT_TRUE(parser.results().list.empty());
132 EXPECT_FALSE(parser.errors().empty());
134 EXPECT_TRUE(parser.Parse(kMissingVersion));
135 EXPECT_TRUE(parser.results().list.empty());
136 EXPECT_FALSE(parser.errors().empty());
138 EXPECT_TRUE(parser.Parse(kInvalidVersion));
139 EXPECT_TRUE(parser.results().list.empty());
140 EXPECT_FALSE(parser.errors().empty());
143 EXPECT_TRUE(parser.Parse(kValidXml));
144 EXPECT_TRUE(parser.errors().empty());
145 EXPECT_FALSE(parser.results().list.empty());
146 const UpdateManifest::Result* firstResult = &parser.results().list.at(0);
154 EXPECT_TRUE(parser.Parse(kUsesNamespacePrefix));
155 EXPECT_TRUE(parser.errors().empty());
156 EXPECT_TRUE(parser.Parse(kSimilarTagnames));
157 EXPECT_TRUE(parser.errors().empty());
161 EXPECT_TRUE(parser.Parse(valid_xml_with_hash));
162 EXPECT_TRUE(parser.errors().empty());
163 EXPECT_FALSE(parser.results().list.empty());
164 firstResult = &parser.results().list.at(0);
168 EXPECT_TRUE(parser.Parse(kWithDaystart));
169 EXPECT_TRUE(parser.errors().empty());
170 EXPECT_FALSE(parser.results().list.empty());
171 EXPECT_EQ(parser.results().daystart_elapsed_seconds, 456);
174 EXPECT_TRUE(parser.Parse(kNoUpdate));
175 EXPECT_TRUE(parser.errors().empty());
176 EXPECT_FALSE(parser.results().list.empty());
177 firstResult = &parser.results().list.at(0);
182 EXPECT_TRUE(parser.Parse(kTwoAppsOneError));
183 EXPECT_FALSE(parser.errors().empty());
184 EXPECT_EQ(1u, parser.results().list.size());
185 firstResult = &parser.results().list.at(0);