OLD | NEW |
(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 { |
| 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_ |
OLD | NEW |