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

Unified Diff: Source/web/tests/KeyboardTest.cpp

Issue 14107015: Rename OS(DARWIN) to OS(MACOSX). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 3 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
« no previous file with comments | « Source/web/tests/ChromeClientImplTest.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/KeyboardTest.cpp
diff --git a/Source/web/tests/KeyboardTest.cpp b/Source/web/tests/KeyboardTest.cpp
index 37b0a01e44463f9a44efd520ee0137c9291f41c1..c5a20669c155b9ce45076979824c0021ba0768d9 100644
--- a/Source/web/tests/KeyboardTest.cpp
+++ b/Source/web/tests/KeyboardTest.cpp
@@ -79,7 +79,7 @@ public:
const char* interpretOSModifierKeyPress(char keyCode)
{
WebKeyboardEvent keyboardEvent;
-#if OS(DARWIN)
+#if OS(MACOSX)
WebInputEvent::Modifiers osModifier = WebInputEvent::MetaKey;
#else
WebInputEvent::Modifiers osModifier = WebInputEvent::ControlKey;
@@ -123,42 +123,42 @@ TEST_F(KeyboardTest, TestCtrlReturn)
TEST_F(KeyboardTest, TestOSModifierZ)
{
-#if !OS(DARWIN)
+#if !OS(MACOSX)
EXPECT_STREQ("Undo", interpretOSModifierKeyPress('Z'));
#endif
}
TEST_F(KeyboardTest, TestOSModifierY)
{
-#if !OS(DARWIN)
+#if !OS(MACOSX)
EXPECT_STREQ("Redo", interpretOSModifierKeyPress('Y'));
#endif
}
TEST_F(KeyboardTest, TestOSModifierA)
{
-#if !OS(DARWIN)
+#if !OS(MACOSX)
EXPECT_STREQ("SelectAll", interpretOSModifierKeyPress('A'));
#endif
}
TEST_F(KeyboardTest, TestOSModifierX)
{
-#if !OS(DARWIN)
+#if !OS(MACOSX)
EXPECT_STREQ("Cut", interpretOSModifierKeyPress('X'));
#endif
}
TEST_F(KeyboardTest, TestOSModifierC)
{
-#if !OS(DARWIN)
+#if !OS(MACOSX)
EXPECT_STREQ("Copy", interpretOSModifierKeyPress('C'));
#endif
}
TEST_F(KeyboardTest, TestOSModifierV)
{
-#if !OS(DARWIN)
+#if !OS(MACOSX)
EXPECT_STREQ("Paste", interpretOSModifierKeyPress('V'));
#endif
}
« no previous file with comments | « Source/web/tests/ChromeClientImplTest.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698