Index: ui/base/cocoa/cocoa_base_utils_unittest.mm |
diff --git a/ui/base/cocoa/cocoa_base_utils_unittest.mm b/ui/base/cocoa/cocoa_base_utils_unittest.mm |
index 5749e2d176c9518e542a6a8d2e340b260ed08d2d..f379120e2bfb782a213b45f941d23d8be272dd03 100644 |
--- a/ui/base/cocoa/cocoa_base_utils_unittest.mm |
+++ b/ui/base/cocoa/cocoa_base_utils_unittest.mm |
@@ -6,6 +6,7 @@ |
#import <objc/objc-class.h> |
+#import "base/mac/scoped_objc_class_swizzler.h" |
#include "testing/gtest/include/gtest/gtest.h" |
#include "testing/platform_test.h" |
#include "ui/events/event_constants.h" |
@@ -39,8 +40,8 @@ TEST_F(CocoaBaseUtilsTest, WindowOpenDispositionFromNSEvent) { |
// Shift+Middle Click = new foreground tab. |
{ |
- ScopedClassSwizzler swizzler([NSEvent class], [TestEvent class], |
- @selector(modifierFlags)); |
+ base::mac::ScopedObjCClassSwizzler swizzler( |
+ [NSEvent class], [TestEvent class], @selector(modifierFlags)); |
me = cocoa_test_event_utils::MouseEventWithType(NSOtherMouseUp, |
NSShiftKeyMask); |
EXPECT_EQ(NEW_FOREGROUND_TAB, WindowOpenDispositionFromNSEvent(me)); |