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

Side by Side Diff: chrome/browser/ui/cocoa/find_pasteboard_unittest.mm

Issue 7149013: Remove most of the remaining test dependencies (other than chrome/test). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/cocoa/find_pasteboard.mm ('k') | chrome/browser/unload_uitest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/memory/scoped_nsobject.h" 7 #include "base/memory/scoped_nsobject.h"
8 #import "chrome/browser/ui/cocoa/find_pasteboard.h"
9 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 8 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
9 #import "content/browser/find_pasteboard.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "testing/platform_test.h" 11 #include "testing/platform_test.h"
12 12
13 // A subclass of FindPasteboard that doesn't write to the real find pasteboard. 13 // A subclass of FindPasteboard that doesn't write to the real find pasteboard.
14 @interface FindPasteboardTesting : FindPasteboard { 14 @interface FindPasteboardTesting : FindPasteboard {
15 @public 15 @public
16 int notificationCount_; 16 int notificationCount_;
17 @private 17 @private
18 NSPasteboard* pboard_; 18 NSPasteboard* pboard_;
19 } 19 }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 [pboard_.get() setFindPboardText:@"otherer text"]; 107 [pboard_.get() setFindPboardText:@"otherer text"];
108 [pboard_.get() loadTextFromPasteboard:nil]; 108 [pboard_.get() loadTextFromPasteboard:nil];
109 EXPECT_EQ(3, pboard_.get()->notificationCount_); 109 EXPECT_EQ(3, pboard_.get()->notificationCount_);
110 110
111 [[NSNotificationCenter defaultCenter] removeObserver:pboard_.get()]; 111 [[NSNotificationCenter defaultCenter] removeObserver:pboard_.get()];
112 } 112 }
113 113
114 114
115 } // namespace 115 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/find_pasteboard.mm ('k') | chrome/browser/unload_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698