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

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_hover_state_unittest.mm

Issue 2565813002: Create c/b/ui/cocoa/test and move test files to there (Closed)
Patch Set: Rebase Created 4 years 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
OLDNEW
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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/threading/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" 10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h"
11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_hover_state.h" 11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_hover_state.h"
12 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 12 #import "chrome/browser/ui/cocoa/test/cocoa_test_helper.h"
13 13
14 namespace { 14 namespace {
15 15
16 class BookmarkBarFolderHoverStateTest : public CocoaTest { 16 class BookmarkBarFolderHoverStateTest : public CocoaTest {
17 }; 17 };
18 18
19 // Hover state machine interface. 19 // Hover state machine interface.
20 // A strict call order is implied with these calls. It is ONLY valid to make 20 // A strict call order is implied with these calls. It is ONLY valid to make
21 // these specific state transitions. 21 // these specific state transitions.
22 TEST_F(BookmarkBarFolderHoverStateTest, HoverState) { 22 TEST_F(BookmarkBarFolderHoverStateTest, HoverState) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 FROM_HERE, run_loop.QuitWhenIdleClosure(), 76 FROM_HERE, run_loop.QuitWhenIdleClosure(),
77 base::TimeDelta::FromMilliseconds(bookmarks::kDragHoverCloseDelay * 77 base::TimeDelta::FromMilliseconds(bookmarks::kDragHoverCloseDelay *
78 1000.0 * 1.5)); 78 1000.0 * 1.5));
79 run_loop.Run(); 79 run_loop.Run();
80 ASSERT_EQ(kHoverStateClosed, [bbfhs hoverState]); 80 ASSERT_EQ(kHoverStateClosed, [bbfhs hoverState]);
81 ASSERT_EQ(nil, [bbfhs hoverButton]); 81 ASSERT_EQ(nil, [bbfhs hoverButton]);
82 } 82 }
83 } 83 }
84 84
85 } // namespace 85 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698