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

Side by Side Diff: chrome/browser/ui/cocoa/hover_image_button_unittest.mm

Issue 10756018: Merge grd files in ui/resources and chrome/app/theme (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, *_standard.rc Created 8 years, 5 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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"
12 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
13 #include "ui/base/resource/resource_bundle.h" 12 #include "ui/base/resource/resource_bundle.h"
14 #include "ui/gfx/image/image.h" 13 #include "ui/gfx/image/image.h"
15 14
16 namespace { 15 namespace {
17 16
18 class HoverImageButtonTest : public CocoaTest { 17 class HoverImageButtonTest : public CocoaTest {
19 public: 18 public:
20 HoverImageButtonTest() { 19 HoverImageButtonTest() {
21 NSRect content_frame = [[test_window() contentView] frame]; 20 NSRect content_frame = [[test_window() contentView] frame];
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 61
63 [button_ mouseEntered:nil]; 62 [button_ mouseEntered:nil];
64 DrawRect(); 63 DrawRect();
65 EXPECT_EQ([button_ alphaValue], 1.0); 64 EXPECT_EQ([button_ alphaValue], 1.0);
66 [button_ mouseExited:nil]; 65 [button_ mouseExited:nil];
67 DrawRect(); 66 DrawRect();
68 EXPECT_EQ([button_ alphaValue], 0.5); 67 EXPECT_EQ([button_ alphaValue], 0.5);
69 } 68 }
70 69
71 } // namespace 70 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/history_overlay_controller.mm ('k') | chrome/browser/ui/cocoa/hung_renderer_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698