Index: extensions/common/test/scoped_command_line_switch.h |
diff --git a/extensions/common/test/scoped_command_line_switch.h b/extensions/common/test/scoped_command_line_switch.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f0bdafc7df0626e1ab3698fed18018d625b41e2b |
--- /dev/null |
+++ b/extensions/common/test/scoped_command_line_switch.h |
@@ -0,0 +1,23 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef EXTENSIONS_COMMON_TEST_SCOPED_COMMAND_LINE_SWITCH_H_ |
+#define EXTENSIONS_COMMON_TEST_SCOPED_COMMAND_LINE_SWITCH_H_ |
+ |
+#include <string> |
+ |
+#include "base/command_line.h" |
+ |
+class ScopedCommandLineSwitch { |
+ public: |
+ explicit ScopedCommandLineSwitch(const std::string& switch_string); |
+ ScopedCommandLineSwitch(const std::string& switch_string, |
+ const std::string& value); |
+ ~ScopedCommandLineSwitch(); |
+ |
+ private: |
+ base::CommandLine original_command_line_; |
+}; |
+ |
+#endif // EXTENSIONS_COMMON_TEST_SCOPED_COMMAND_LINE_SWITCH_H_ |