OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/test/expectations/parser.h" | 5 #include "base/test/expectations/parser.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/strings/string_util.h" |
8 | 8 |
9 namespace test_expectations { | 9 namespace test_expectations { |
10 | 10 |
11 Parser::Parser(Delegate* delegate, const std::string& input) | 11 Parser::Parser(Delegate* delegate, const std::string& input) |
12 : delegate_(delegate), | 12 : delegate_(delegate), |
13 input_(input), | 13 input_(input), |
14 pos_(NULL), | 14 pos_(NULL), |
15 end_(NULL), | 15 end_(NULL), |
16 line_number_(0), | 16 line_number_(0), |
17 data_error_(false) { | 17 data_error_(false) { |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 delegate_->OnSyntaxError(message); | 192 delegate_->OnSyntaxError(message); |
193 return NULL; | 193 return NULL; |
194 } | 194 } |
195 | 195 |
196 void Parser::DataError(const std::string& error) { | 196 void Parser::DataError(const std::string& error) { |
197 data_error_ = true; | 197 data_error_ = true; |
198 delegate_->OnDataError(error); | 198 delegate_->OnDataError(error); |
199 } | 199 } |
200 | 200 |
201 } // namespace test_expectations | 201 } // namespace test_expectations |
OLD | NEW |