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

Unified Diff: chrome/browser/ui/cocoa/tabs/tab_audio_indicator_view_mac_unittest.mm

Issue 23513039: Replace animated tab audio indicator with static tab audio indicator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments from sky@. Also, rebased. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/tabs/tab_audio_indicator_view_mac_unittest.mm
diff --git a/chrome/browser/ui/cocoa/tabs/tab_audio_indicator_view_mac_unittest.mm b/chrome/browser/ui/cocoa/tabs/tab_audio_indicator_view_mac_unittest.mm
deleted file mode 100644
index 099b23efb99f2e6429a476743899232db6f1982e..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/tabs/tab_audio_indicator_view_mac_unittest.mm
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#import "chrome/browser/ui/cocoa/tabs/tab_audio_indicator_view_mac.h"
-
-#include "base/mac/scoped_nsobject.h"
-#include "base/message_loop/message_loop.h"
-#import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
-
-class TabAudioIndicatorViewMacTest : public CocoaTest {
- protected:
- TabAudioIndicatorViewMacTest() {
- base::scoped_nsobject<TabAudioIndicatorViewMac> view(
- [[TabAudioIndicatorViewMac alloc]
- initWithFrame:NSMakeRect(0, 0, 16, 16)]);
- view_ = view.get();
- [[test_window() contentView] addSubview:view_];
-
- base::scoped_nsobject<NSImage> image(
- [[NSImage alloc] initWithSize:NSMakeSize(16, 16)]);
- [image lockFocus];
- NSRectFill(NSMakeRect(0, 0, 16, 16));
- [image unlockFocus];
-
- [view_ setBackgroundImage:image];
- [view_ setIsPlayingAudio:YES];
- }
-
- TabAudioIndicatorViewMac* view_;
- base::MessageLoopForUI message_loop_; // Needed for gfx::LinearAnimation.
-
- private:
- DISALLOW_COPY_AND_ASSIGN(TabAudioIndicatorViewMacTest);
-};
-
-TEST_VIEW(TabAudioIndicatorViewMacTest, view_)
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_audio_indicator_view_mac.mm ('k') | chrome/browser/ui/cocoa/tabs/tab_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698