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

Unified Diff: extensions/common/test/scoped_command_line_switch.h

Issue 1054813002: Refactor ScopedCommandLineSwitch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@whitelisted
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « extensions/common/features/simple_feature_unittest.cc ('k') | extensions/common/test/scoped_command_line_switch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698