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

Unified Diff: chrome/browser/chromeos/events/event_rewriter_unittest.cc

Issue 1908633002: Introduce ScopedCommandLine (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean Up Other Tests 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/events/event_rewriter_unittest.cc
diff --git a/chrome/browser/chromeos/events/event_rewriter_unittest.cc b/chrome/browser/chromeos/events/event_rewriter_unittest.cc
index dbab19f63042a9c67031e4c38e12c766a7df4d92..6cfd5303952e9478747e9c43fd91e9b4dfedc4a4 100644
--- a/chrome/browser/chromeos/events/event_rewriter_unittest.cc
+++ b/chrome/browser/chromeos/events/event_rewriter_unittest.cc
@@ -489,12 +489,9 @@ TEST_F(EventRewriterTest, TestRewriteNumPadKeys) {
TEST_F(EventRewriterTest, TestRewriteNumPadKeysWithDiamondKeyFlag) {
// Make sure the num lock works correctly even when Diamond key exists.
- const base::CommandLine original_cl(*base::CommandLine::ForCurrentProcess());
base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
chromeos::switches::kHasChromeOSDiamondKey, "");
-
TestRewriteNumPadKeys();
- *base::CommandLine::ForCurrentProcess() = original_cl;
}
// Tests if the rewriter can handle a Command + Num Pad event.
« no previous file with comments | « base/test/scoped_command_line.cc ('k') | chrome/browser/extensions/activity_log/activity_log_enabled_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698