| 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/tab_projecting_image_view.h" | 5 #import "chrome/browser/ui/cocoa/tabs/tab_projecting_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 25 matching lines...) Expand all Loading... |
| 36 [[TabProjectingImageView alloc] initWithFrame:NSMakeRect(0, 0, 32, 32) | 36 [[TabProjectingImageView alloc] initWithFrame:NSMakeRect(0, 0, 32, 32) |
| 37 backgroundImage:backgroundImage | 37 backgroundImage:backgroundImage |
| 38 projectorImage:projectorImage | 38 projectorImage:projectorImage |
| 39 throbImage:throbImage | 39 throbImage:throbImage |
| 40 durationMS:20 | 40 durationMS:20 |
| 41 animationContainer:NULL]); | 41 animationContainer:NULL]); |
| 42 view_ = view.get(); | 42 view_ = view.get(); |
| 43 [[test_window() contentView] addSubview:view_]; | 43 [[test_window() contentView] addSubview:view_]; |
| 44 } | 44 } |
| 45 | 45 |
| 46 base::MessageLoopForUI message_loop_; // Needed for ui::ThrobAnimation. | 46 base::MessageLoopForUI message_loop_; // Needed for gfx::ThrobAnimation. |
| 47 TabProjectingImageView* view_; | 47 TabProjectingImageView* view_; |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 TEST_VIEW(TabProjectingImageViewTest, view_) | 50 TEST_VIEW(TabProjectingImageViewTest, view_) |
| 51 | 51 |
| 52 } // namespace | 52 } // namespace |
| OLD | NEW |