summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/browser_frame_view_unittest.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/cocoa/browser_frame_view_unittest.mm')
-rw-r--r--chrome/browser/ui/cocoa/browser_frame_view_unittest.mm14
1 files changed, 3 insertions, 11 deletions
diff --git a/chrome/browser/ui/cocoa/browser_frame_view_unittest.mm b/chrome/browser/ui/cocoa/browser_frame_view_unittest.mm
index ca2de67..9de6734 100644
--- a/chrome/browser/ui/cocoa/browser_frame_view_unittest.mm
+++ b/chrome/browser/ui/cocoa/browser_frame_view_unittest.mm
@@ -1,11 +1,11 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
#import <Cocoa/Cocoa.h>
#include <objc/runtime.h>
-#include "base/scoped_nsobject.h"
+#include "base/memory/scoped_nsobject.h"
#import "chrome/browser/ui/cocoa/browser_frame_view.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
@@ -26,23 +26,15 @@ class BrowserFrameViewTest : public PlatformTest {
// Test to make sure our class modifications were successful.
TEST_F(BrowserFrameViewTest, SuccessfulClassModifications) {
unsigned int count;
- BOOL foundMouseInGroup = NO;
BOOL foundDrawRectOriginal = NO;
- BOOL foundUpdateTrackingAreas = NO;
Method* methods = class_copyMethodList([view_ class], &count);
for (unsigned int i = 0; i < count; ++i) {
SEL selector = method_getName(methods[i]);
- if (selector == @selector(_mouseInGroup:)) {
- foundMouseInGroup = YES;
- } else if (selector == @selector(drawRectOriginal:)) {
+ if (selector == @selector(drawRectOriginal:)) {
foundDrawRectOriginal = YES;
- } else if (selector == @selector(updateTrackingAreas)) {
- foundUpdateTrackingAreas = YES;
}
}
- EXPECT_TRUE(foundMouseInGroup);
EXPECT_TRUE(foundDrawRectOriginal);
- EXPECT_TRUE(foundUpdateTrackingAreas);
free(methods);
}