| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |