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

Unified Diff: chrome/browser/ui/cocoa/nsview_additions_unittest.mm

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 years, 6 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/ui/cocoa/nsview_additions_unittest.mm
diff --git a/chrome/browser/ui/cocoa/nsview_additions_unittest.mm b/chrome/browser/ui/cocoa/nsview_additions_unittest.mm
index ffb7e0ffc3053aab42d59c36d06685951623acb8..a9b74688830ecd8d9a1980a792b67c1095771d59 100644
--- a/chrome/browser/ui/cocoa/nsview_additions_unittest.mm
+++ b/chrome/browser/ui/cocoa/nsview_additions_unittest.mm
@@ -4,7 +4,7 @@
#import "chrome/browser/ui/cocoa/nsview_additions.h"
-#include "base/memory/scoped_nsobject.h"
+#include "base/mac/scoped_nsobject.h"
#import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
#include "testing/gtest/include/gtest/gtest.h"
#import "testing/gtest_mac.h"
@@ -38,9 +38,12 @@ typedef CocoaTest NSViewChromeAdditionsTest;
@end
TEST_F(NSViewChromeAdditionsTest, BelowAboveView) {
- scoped_nsobject<NSView> parent([[NSView alloc] initWithFrame:NSZeroRect]);
- scoped_nsobject<NSView> child1([[NSView alloc] initWithFrame:NSZeroRect]);
- scoped_nsobject<NSView> child2([[NSView alloc] initWithFrame:NSZeroRect]);
+ base::scoped_nsobject<NSView> parent(
+ [[NSView alloc] initWithFrame:NSZeroRect]);
+ base::scoped_nsobject<NSView> child1(
+ [[NSView alloc] initWithFrame:NSZeroRect]);
+ base::scoped_nsobject<NSView> child2(
+ [[NSView alloc] initWithFrame:NSZeroRect]);
[parent addSubview:child1];
[parent addSubview:child2];
@@ -60,9 +63,12 @@ TEST_F(NSViewChromeAdditionsTest, BelowAboveView) {
}
TEST_F(NSViewChromeAdditionsTest, EnsurePosition) {
- scoped_nsobject<NSView> parent([[NSView alloc] initWithFrame:NSZeroRect]);
- scoped_nsobject<NSView> child1([[NSView alloc] initWithFrame:NSZeroRect]);
- scoped_nsobject<NSView> child2([[NSView alloc] initWithFrame:NSZeroRect]);
+ base::scoped_nsobject<NSView> parent(
+ [[NSView alloc] initWithFrame:NSZeroRect]);
+ base::scoped_nsobject<NSView> child1(
+ [[NSView alloc] initWithFrame:NSZeroRect]);
+ base::scoped_nsobject<NSView> child2(
+ [[NSView alloc] initWithFrame:NSZeroRect]);
[parent addSubview:child1];
[parent cr_ensureSubview:child2
@@ -81,10 +87,12 @@ TEST_F(NSViewChromeAdditionsTest, EnsurePosition) {
// Verify that no view is removed or added when no change is needed.
TEST_F(NSViewChromeAdditionsTest, EnsurePositionNoChange) {
- scoped_nsobject<ParentView> parent(
+ base::scoped_nsobject<ParentView> parent(
[[ParentView alloc] initWithFrame:NSZeroRect]);
- scoped_nsobject<NSView> child1([[NSView alloc] initWithFrame:NSZeroRect]);
- scoped_nsobject<NSView> child2([[NSView alloc] initWithFrame:NSZeroRect]);
+ base::scoped_nsobject<NSView> child1(
+ [[NSView alloc] initWithFrame:NSZeroRect]);
+ base::scoped_nsobject<NSView> child2(
+ [[NSView alloc] initWithFrame:NSZeroRect]);
[parent addSubview:child1];
[parent addSubview:child2];

Powered by Google App Engine
This is Rietveld 408576698