| OLD | NEW | 
|---|
| 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/mac/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" | 
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" | 
| 9 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 9 #import "chrome/browser/ui/cocoa/test/cocoa_test_helper.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 #include "ui/base/clipboard/clipboard_util_mac.h" | 12 #include "ui/base/clipboard/clipboard_util_mac.h" | 
| 13 #import "ui/base/cocoa/find_pasteboard.h" | 13 #import "ui/base/cocoa/find_pasteboard.h" | 
| 14 | 14 | 
| 15 // A subclass of FindPasteboard that doesn't write to the real find pasteboard. | 15 // A subclass of FindPasteboard that doesn't write to the real find pasteboard. | 
| 16 @interface FindPasteboardTesting : FindPasteboard { | 16 @interface FindPasteboardTesting : FindPasteboard { | 
| 17  @public | 17  @public | 
| 18   int notificationCount_; | 18   int notificationCount_; | 
| 19  @private | 19  @private | 
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 110 | 110 | 
| 111   [pboard_.get() setFindPboardText:@"otherer text"]; | 111   [pboard_.get() setFindPboardText:@"otherer text"]; | 
| 112   [pboard_.get() loadTextFromPasteboard:nil]; | 112   [pboard_.get() loadTextFromPasteboard:nil]; | 
| 113   EXPECT_EQ(3, pboard_.get()->notificationCount_); | 113   EXPECT_EQ(3, pboard_.get()->notificationCount_); | 
| 114 | 114 | 
| 115   [[NSNotificationCenter defaultCenter] removeObserver:pboard_.get()]; | 115   [[NSNotificationCenter defaultCenter] removeObserver:pboard_.get()]; | 
| 116 } | 116 } | 
| 117 | 117 | 
| 118 | 118 | 
| 119 }  // namespace | 119 }  // namespace | 
| OLD | NEW | 
|---|