| 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 "chrome/browser/ui/cocoa/tabs/throbbing_image_view.h" | 5 #import "chrome/browser/ui/cocoa/tabs/throbbing_image_view.h" |
| 6 | 6 |
| 7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 8 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 #include "testing/platform_test.h" | 10 #include "testing/platform_test.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 [[ThrobbingImageView alloc] initWithFrame:NSMakeRect(0, 0, 16, 16) | 24 [[ThrobbingImageView alloc] initWithFrame:NSMakeRect(0, 0, 16, 16) |
| 25 backgroundImage:image | 25 backgroundImage:image |
| 26 throbImage:image | 26 throbImage:image |
| 27 durationMS:20 | 27 durationMS:20 |
| 28 throbPosition:kThrobPositionOverlay | 28 throbPosition:kThrobPositionOverlay |
| 29 animationContainer:NULL]); | 29 animationContainer:NULL]); |
| 30 view_ = view.get(); | 30 view_ = view.get(); |
| 31 [[test_window() contentView] addSubview:view_]; | 31 [[test_window() contentView] addSubview:view_]; |
| 32 } | 32 } |
| 33 | 33 |
| 34 base::MessageLoopForUI message_loop_; // Needed for ui::ThrobAnimation. | 34 base::MessageLoopForUI message_loop_; // Needed for gfx::ThrobAnimation. |
| 35 ThrobbingImageView* view_; | 35 ThrobbingImageView* view_; |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 TEST_VIEW(ThrobbingImageViewTest, view_) | 38 TEST_VIEW(ThrobbingImageViewTest, view_) |
| 39 | 39 |
| 40 } // namespace | 40 } // namespace |
| 41 | 41 |
| OLD | NEW |