Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: tools/gn/tokenizer_unittest.cc

Issue 1549203002: Switch to standard integer types in tools/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/gn/tokenizer.h ('k') | tools/gn/toolchain.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « tools/gn/tokenizer.h ('k') | tools/gn/toolchain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698