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

Side by Side Diff: chrome/browser/ui/cocoa/tabs/alert_indicator_button_cocoa_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/ui/cocoa/tabs/alert_indicator_button_cocoa.h" 5 #import "chrome/browser/ui/cocoa/tabs/alert_indicator_button_cocoa.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 12 #import "chrome/browser/ui/cocoa/test/cocoa_test_helper.h"
13 #include "chrome/common/chrome_switches.h" 13 #include "chrome/common/chrome_switches.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "testing/platform_test.h" 15 #include "testing/platform_test.h"
16 16
17 // A simple target to confirm an action was invoked. 17 // A simple target to confirm an action was invoked.
18 @interface AlertIndicatorButtonTestTarget : NSObject { 18 @interface AlertIndicatorButtonTestTarget : NSObject {
19 @private 19 @private
20 int count_; 20 int count_;
21 } 21 }
22 @property(readonly, nonatomic) int count; 22 @property(readonly, nonatomic) int count;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 EXPECT_EQ(2, [clickTarget count]); 81 EXPECT_EQ(2, [clickTarget count]);
82 } 82 }
83 83
84 base::scoped_nsobject<AlertIndicatorButton> button_; 84 base::scoped_nsobject<AlertIndicatorButton> button_;
85 base::MessageLoopForUI message_loop_; // Needed for gfx::Animation. 85 base::MessageLoopForUI message_loop_; // Needed for gfx::Animation.
86 }; 86 };
87 87
88 TEST_VIEW(AlertIndicatorButtonTest, button_) 88 TEST_VIEW(AlertIndicatorButtonTest, button_)
89 89
90 } // namespace 90 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tab_contents/sad_tab_mac_unittest.mm ('k') | chrome/browser/ui/cocoa/tabs/tab_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698