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

Side by Side Diff: chrome/browser/ui/cocoa/tabs/tab_audio_indicator_view_mac_unittest.mm

Issue 23531053: ui/base/animation -> ui/gfx/animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge 2 trunk Created 7 years, 3 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/tab_audio_indicator_view_mac.h" 5 #import "chrome/browser/ui/cocoa/tabs/tab_audio_indicator_view_mac.h"
6 6
7 #include "base/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 9 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
10 10
(...skipping 10 matching lines...) Expand all
21 [[NSImage alloc] initWithSize:NSMakeSize(16, 16)]); 21 [[NSImage alloc] initWithSize:NSMakeSize(16, 16)]);
22 [image lockFocus]; 22 [image lockFocus];
23 NSRectFill(NSMakeRect(0, 0, 16, 16)); 23 NSRectFill(NSMakeRect(0, 0, 16, 16));
24 [image unlockFocus]; 24 [image unlockFocus];
25 25
26 [view_ setBackgroundImage:image]; 26 [view_ setBackgroundImage:image];
27 [view_ setIsPlayingAudio:YES]; 27 [view_ setIsPlayingAudio:YES];
28 } 28 }
29 29
30 TabAudioIndicatorViewMac* view_; 30 TabAudioIndicatorViewMac* view_;
31 base::MessageLoopForUI message_loop_; // Needed for ui::LinearAnimation. 31 base::MessageLoopForUI message_loop_; // Needed for gfx::LinearAnimation.
32 32
33 private: 33 private:
34 DISALLOW_COPY_AND_ASSIGN(TabAudioIndicatorViewMacTest); 34 DISALLOW_COPY_AND_ASSIGN(TabAudioIndicatorViewMacTest);
35 }; 35 };
36 36
37 TEST_VIEW(TabAudioIndicatorViewMacTest, view_) 37 TEST_VIEW(TabAudioIndicatorViewMacTest, view_)
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_audio_indicator_view_mac.mm ('k') | chrome/browser/ui/cocoa/tabs/tab_projecting_image_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698