| 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 <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> | 
| 6 | 6 | 
| 7 #include "base/memory/scoped_nsobject.h" | 7 #include "base/memory/scoped_nsobject.h" | 
| 8 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 8 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 
| 9 #import "chrome/browser/ui/cocoa/hover_image_button.h" | 9 #import "chrome/browser/ui/cocoa/hover_image_button.h" | 
| 10 #include "grit/theme_resources.h" | 10 #include "grit/theme_resources.h" | 
|  | 11 #include "grit/theme_resources_standard.h" | 
| 11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" | 
| 12 #include "testing/platform_test.h" | 13 #include "testing/platform_test.h" | 
| 13 #include "ui/base/resource/resource_bundle.h" | 14 #include "ui/base/resource/resource_bundle.h" | 
| 14 #include "ui/gfx/image.h" | 15 #include "ui/gfx/image.h" | 
| 15 | 16 | 
| 16 namespace { | 17 namespace { | 
| 17 | 18 | 
| 18 class HoverImageButtonTest : public CocoaTest { | 19 class HoverImageButtonTest : public CocoaTest { | 
| 19  public: | 20  public: | 
| 20   HoverImageButtonTest() { | 21   HoverImageButtonTest() { | 
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 59 | 60 | 
| 60   [button_ mouseEntered:nil]; | 61   [button_ mouseEntered:nil]; | 
| 61   [button_ drawRect:[button_ frame]]; | 62   [button_ drawRect:[button_ frame]]; | 
| 62   EXPECT_EQ([button_ alphaValue], 1.0); | 63   EXPECT_EQ([button_ alphaValue], 1.0); | 
| 63   [button_ mouseExited:nil]; | 64   [button_ mouseExited:nil]; | 
| 64   [button_ drawRect:[button_ frame]]; | 65   [button_ drawRect:[button_ frame]]; | 
| 65   EXPECT_EQ([button_ alphaValue], 0.5); | 66   EXPECT_EQ([button_ alphaValue], 0.5); | 
| 66 } | 67 } | 
| 67 | 68 | 
| 68 }  // namespace | 69 }  // namespace | 
| OLD | NEW | 
|---|