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

Side by Side Diff: base/test/command_line_test_util.h

Issue 1908633002: Introduce ScopedCommandLine (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update CrOS Unit Test Created 4 years, 8 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BASE_TEST_COMMAND_LINE_TEST_UTIL_H_
6 #define BASE_TEST_COMMAND_LINE_TEST_UTIL_H_
7
8 #include "base/command_line.h"
9
10 namespace base {
11 namespace test {
12
13 class ScopedCommandLine final {
danakj 2016/04/22 18:57:10 Name this file after the class.
robliao 2016/04/22 19:42:35 Done.
14 public:
15 ScopedCommandLine();
16 ~ScopedCommandLine();
17
18 // Gets the command line for the current process.
19 // NOTE: Do not name this GetCommandLine as this will conflict with Windows's
20 // GetCommandLine and get renamed to GetCommandLineW.
21 CommandLine* GetProcessCommandLine();
22
23 private:
24 const CommandLine original_command_line_;
25 };
26
27 } // namespace test
28 } // namespace base
29
30 #endif // BASE_TEST_COMMAND_LINE_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698