| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "base/mac/scoped_nsobject.h" | 5 #include "base/mac/scoped_nsobject.h" |
| 6 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
| 7 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 7 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 8 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" | 8 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" |
| 9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h" | 9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h" |
| 10 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" | 10 #include "chrome/browser/ui/cocoa/test/cocoa_profile_test.h" |
| 11 #include "chrome/test/base/testing_profile.h" | 11 #include "chrome/test/base/testing_profile.h" |
| 12 #include "components/bookmarks/browser/bookmark_model.h" | 12 #include "components/bookmarks/browser/bookmark_model.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "testing/platform_test.h" | 14 #include "testing/platform_test.h" |
| 15 #import "ui/events/test/cocoa_test_event_utils.h" | 15 #import "ui/events/test/cocoa_test_event_utils.h" |
| 16 | 16 |
| 17 using bookmarks::BookmarkModel; | 17 using bookmarks::BookmarkModel; |
| 18 using bookmarks::BookmarkNode; | 18 using bookmarks::BookmarkNode; |
| 19 | 19 |
| 20 // Fake BookmarkButton delegate to get a pong on mouse entered/exited | 20 // Fake BookmarkButton delegate to get a pong on mouse entered/exited |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 operation:NSDragOperationMove]; | 190 operation:NSDragOperationMove]; |
| 191 EXPECT_EQ(0, delegate.get()->didDragToTrashCount_); | 191 EXPECT_EQ(0, delegate.get()->didDragToTrashCount_); |
| 192 [button draggingSession:nil | 192 [button draggingSession:nil |
| 193 endedAtPoint:NSZeroPoint | 193 endedAtPoint:NSZeroPoint |
| 194 operation:NSDragOperationDelete]; | 194 operation:NSDragOperationDelete]; |
| 195 EXPECT_EQ(1, delegate.get()->didDragToTrashCount_); | 195 EXPECT_EQ(1, delegate.get()->didDragToTrashCount_); |
| 196 #pragma clang diagnostic pop | 196 #pragma clang diagnostic pop |
| 197 } | 197 } |
| 198 | 198 |
| 199 } | 199 } |
| OLD | NEW |