| 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 <stddef.h> |
| 6 |
| 5 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 6 #include "tools/gn/input_file.h" | 8 #include "tools/gn/input_file.h" |
| 7 #include "tools/gn/token.h" | 9 #include "tools/gn/token.h" |
| 8 #include "tools/gn/tokenizer.h" | 10 #include "tools/gn/tokenizer.h" |
| 9 | 11 |
| 10 namespace { | 12 namespace { |
| 11 | 13 |
| 12 struct TokenExpectation { | 14 struct TokenExpectation { |
| 13 Token::Type type; | 15 Token::Type type; |
| 14 const char* value; | 16 const char* value; |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 { Token::SUFFIX_COMMENT, "# A" }, | 219 { Token::SUFFIX_COMMENT, "# A" }, |
| 218 { Token::SUFFIX_COMMENT, "# B" }, | 220 { Token::SUFFIX_COMMENT, "# B" }, |
| 219 { Token::RIGHT_BRACE, "}" }, | 221 { Token::RIGHT_BRACE, "}" }, |
| 220 }; | 222 }; |
| 221 EXPECT_TRUE(CheckTokenizer( | 223 EXPECT_TRUE(CheckTokenizer( |
| 222 "fun(\"foo\") { # A\n" | 224 "fun(\"foo\") { # A\n" |
| 223 " # B\n" // Note that these are aligned, the \"s move A out. | 225 " # B\n" // Note that these are aligned, the \"s move A out. |
| 224 "}", | 226 "}", |
| 225 fn2)); | 227 fn2)); |
| 226 } | 228 } |
| OLD | NEW |