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

Side by Side Diff: base/command_line_unittest.cc

Issue 2692273008: Hacky slashy (Closed)
Patch Set: wip Created 3 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/command_line.h" 5 #include "base/command_line.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 cl.AppendArg(kThirdArgName); 201 cl.AppendArg(kThirdArgName);
202 cl.AppendArg(kFourthArgName); 202 cl.AppendArg(kFourthArgName);
203 cl.AppendArg(kFifthArgName); 203 cl.AppendArg(kFifthArgName);
204 204
205 #if defined(OS_WIN) 205 #if defined(OS_WIN)
206 CommandLine::StringType expected_first_arg(UTF8ToUTF16(kFirstArgName)); 206 CommandLine::StringType expected_first_arg(UTF8ToUTF16(kFirstArgName));
207 CommandLine::StringType expected_second_arg(UTF8ToUTF16(kSecondArgName)); 207 CommandLine::StringType expected_second_arg(UTF8ToUTF16(kSecondArgName));
208 CommandLine::StringType expected_third_arg(UTF8ToUTF16(kThirdArgName)); 208 CommandLine::StringType expected_third_arg(UTF8ToUTF16(kThirdArgName));
209 CommandLine::StringType expected_fourth_arg(UTF8ToUTF16(kFourthArgName)); 209 CommandLine::StringType expected_fourth_arg(UTF8ToUTF16(kFourthArgName));
210 CommandLine::StringType expected_fifth_arg(UTF8ToUTF16(kFifthArgName)); 210 CommandLine::StringType expected_fifth_arg(UTF8ToUTF16(kFifthArgName));
211 #elif defined(OS_POSIX) 211 #elif defined(OS_POSIX) || defined(OS_FUCHSIA)
212 CommandLine::StringType expected_first_arg(kFirstArgName); 212 CommandLine::StringType expected_first_arg(kFirstArgName);
213 CommandLine::StringType expected_second_arg(kSecondArgName); 213 CommandLine::StringType expected_second_arg(kSecondArgName);
214 CommandLine::StringType expected_third_arg(kThirdArgName); 214 CommandLine::StringType expected_third_arg(kThirdArgName);
215 CommandLine::StringType expected_fourth_arg(kFourthArgName); 215 CommandLine::StringType expected_fourth_arg(kFourthArgName);
216 CommandLine::StringType expected_fifth_arg(kFifthArgName); 216 CommandLine::StringType expected_fifth_arg(kFifthArgName);
217 #endif 217 #endif
218 218
219 #if defined(OS_WIN) 219 #if defined(OS_WIN)
220 #define QUOTE_ON_WIN FILE_PATH_LITERAL("\"") 220 #define QUOTE_ON_WIN FILE_PATH_LITERAL("\"")
221 #else 221 #else
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 CommandLine assigned = *initial; 400 CommandLine assigned = *initial;
401 CommandLine::SwitchMap switch_map = initial->GetSwitches(); 401 CommandLine::SwitchMap switch_map = initial->GetSwitches();
402 initial.reset(); 402 initial.reset();
403 for (const auto& pair : switch_map) 403 for (const auto& pair : switch_map)
404 EXPECT_TRUE(copy_constructed.HasSwitch(pair.first)); 404 EXPECT_TRUE(copy_constructed.HasSwitch(pair.first));
405 for (const auto& pair : switch_map) 405 for (const auto& pair : switch_map)
406 EXPECT_TRUE(assigned.HasSwitch(pair.first)); 406 EXPECT_TRUE(assigned.HasSwitch(pair.first));
407 } 407 }
408 408
409 } // namespace base 409 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698