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

Side by Side Diff: tools/gn/function_get_path_info_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, 11 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/function_get_path_info.cc ('k') | tools/gn/function_rebase_path.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "build/build_config.h"
5 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
6 #include "tools/gn/functions.h" 7 #include "tools/gn/functions.h"
7 #include "tools/gn/test_with_scope.h" 8 #include "tools/gn/test_with_scope.h"
8 9
9 namespace { 10 namespace {
10 11
11 class GetPathInfoTest : public testing::Test { 12 class GetPathInfoTest : public testing::Test {
12 public: 13 public:
13 GetPathInfoTest() : testing::Test() { 14 GetPathInfoTest() : testing::Test() {
14 setup_.scope()->set_source_dir(SourceDir("//src/foo/")); 15 setup_.scope()->set_source_dir(SourceDir("//src/foo/"));
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 EXPECT_EQ("//out/Debug/gen/src/foo", Call(".", "gen_dir")); 111 EXPECT_EQ("//out/Debug/gen/src/foo", Call(".", "gen_dir"));
111 EXPECT_EQ("//out/Debug/gen/src/foo", Call("bar", "gen_dir")); 112 EXPECT_EQ("//out/Debug/gen/src/foo", Call("bar", "gen_dir"));
112 EXPECT_EQ("//out/Debug/gen/foo", Call("//foo/bar.txt", "gen_dir")); 113 EXPECT_EQ("//out/Debug/gen/foo", Call("//foo/bar.txt", "gen_dir"));
113 // System paths go into the ABS_PATH gen directory 114 // System paths go into the ABS_PATH gen directory
114 EXPECT_EQ("//out/Debug/gen/ABS_PATH/foo", Call("/foo/bar.txt", "gen_dir")); 115 EXPECT_EQ("//out/Debug/gen/ABS_PATH/foo", Call("/foo/bar.txt", "gen_dir"));
115 #if defined(OS_WIN) 116 #if defined(OS_WIN)
116 EXPECT_EQ("//out/Debug/gen/ABS_PATH/C/foo", 117 EXPECT_EQ("//out/Debug/gen/ABS_PATH/C/foo",
117 Call("/C:/foo/bar.txt", "gen_dir")); 118 Call("/C:/foo/bar.txt", "gen_dir"));
118 #endif 119 #endif
119 } 120 }
OLDNEW
« no previous file with comments | « tools/gn/function_get_path_info.cc ('k') | tools/gn/function_rebase_path.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698