diff options
Diffstat (limited to 'chrome/browser/cocoa/status_icons/status_icon_mac_unittest.mm')
-rw-r--r-- | chrome/browser/cocoa/status_icons/status_icon_mac_unittest.mm | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/chrome/browser/cocoa/status_icons/status_icon_mac_unittest.mm b/chrome/browser/cocoa/status_icons/status_icon_mac_unittest.mm deleted file mode 100644 index 39246ab..0000000 --- a/chrome/browser/cocoa/status_icons/status_icon_mac_unittest.mm +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2010 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. - -#include "app/resource_bundle.h" -#include "base/string_util.h" -#include "base/utf_string_conversions.h" -#import "chrome/browser/cocoa/cocoa_test_helper.h" -#include "chrome/browser/cocoa/status_icons/status_icon_mac.h" -#include "grit/browser_resources.h" -#include "grit/theme_resources.h" -#include "testing/gmock/include/gmock/gmock.h" -#include "testing/gtest/include/gtest/gtest.h" - -class SkBitmap; - -class StatusIconMacTest : public CocoaTest { -}; - -TEST_F(StatusIconMacTest, Create) { - // Create an icon, set the tool tip, then shut it down (checks for leaks). - scoped_ptr<StatusIcon> icon(new StatusIconMac()); - SkBitmap* bitmap = ResourceBundle::GetSharedInstance().GetBitmapNamed( - IDR_STATUS_TRAY_ICON); - icon->SetImage(*bitmap); - SkBitmap* pressed = ResourceBundle::GetSharedInstance().GetBitmapNamed( - IDR_STATUS_TRAY_ICON_PRESSED); - icon->SetPressedImage(*pressed); - icon->SetToolTip(ASCIIToUTF16("tool tip")); -} |