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

Unified Diff: ui/events/cocoa/events_mac_unittest.mm

Issue 345243007: Add ScopedObjCClassSwizzler in base/mac, absorbs objc_method_swizzle and ScopedClassSwizzler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to master Created 6 years, 5 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: ui/events/cocoa/events_mac_unittest.mm
diff --git a/ui/events/cocoa/events_mac_unittest.mm b/ui/events/cocoa/events_mac_unittest.mm
index 77f85495f481a8b32842a5acb0d13d4a94e4eeab..701739da41a950072f8fed9b5cee147d5c8eb338 100644
--- a/ui/events/cocoa/events_mac_unittest.mm
+++ b/ui/events/cocoa/events_mac_unittest.mm
@@ -8,6 +8,7 @@
#include "base/mac/scoped_cftyperef.h"
#include "base/memory/scoped_ptr.h"
+#import "base/test/scoped_class_swizzler_mac.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/events/event_constants.h"
#import "ui/events/test/cocoa_test_event_utils.h"
@@ -57,7 +58,7 @@ class EventsMacTest : public CocoaTest {
void SwizzleMiddleMouseButton() {
DCHECK(!swizzler_);
- swizzler_.reset(new ScopedClassSwizzler(
+ swizzler_.reset(new base::ScopedClassSwizzler(
[NSEvent class],
[MiddleMouseButtonNumberDonor class],
@selector(buttonNumber)));
@@ -67,7 +68,7 @@ class EventsMacTest : public CocoaTest {
DCHECK(!g_test_window);
DCHECK(!swizzler_);
g_test_window = test_window();
- swizzler_.reset(new ScopedClassSwizzler(
+ swizzler_.reset(new base::ScopedClassSwizzler(
[NSEvent class],
[TestWindowDonor class],
@selector(window)));
@@ -117,7 +118,7 @@ class EventsMacTest : public CocoaTest {
}
private:
- scoped_ptr<ScopedClassSwizzler> swizzler_;
+ scoped_ptr<base::ScopedClassSwizzler> swizzler_;
DISALLOW_COPY_AND_ASSIGN(EventsMacTest);
};

Powered by Google App Engine
This is Rietveld 408576698