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

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

Issue 2565813002: Create c/b/ui/cocoa/test and move test files to there (Closed)
Patch Set: Rebase Created 4 years 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
OLDNEW
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/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #import "chrome/browser/ui/cocoa/animatable_view.h" 8 #import "chrome/browser/ui/cocoa/animatable_view.h"
9 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 9 #import "chrome/browser/ui/cocoa/test/cocoa_test_helper.h"
10 #import "chrome/browser/ui/cocoa/view_resizer_pong.h" 10 #import "chrome/browser/ui/cocoa/view_resizer_pong.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "testing/platform_test.h" 12 #include "testing/platform_test.h"
13 13
14 namespace { 14 namespace {
15 15
16 class AnimatableViewTest : public CocoaTest { 16 class AnimatableViewTest : public CocoaTest {
17 public: 17 public:
18 AnimatableViewTest() { 18 AnimatableViewTest() {
19 NSRect frame = NSMakeRect(0, 0, 100, 100); 19 NSRect frame = NSMakeRect(0, 0, 100, 100);
(...skipping 19 matching lines...) Expand all
39 39
40 // Set it directly to 50 and make sure it takes effect. 40 // Set it directly to 50 and make sure it takes effect.
41 [resizeDelegate_ setHeight:-1]; 41 [resizeDelegate_ setHeight:-1];
42 [view_ setHeight:50]; 42 [view_ setHeight:50];
43 EXPECT_EQ(50, [resizeDelegate_ height]); 43 EXPECT_EQ(50, [resizeDelegate_ height]);
44 } 44 }
45 45
46 // TODO(rohitrao): Find a way to unittest the animations and delegate messages. 46 // TODO(rohitrao): Find a way to unittest the animations and delegate messages.
47 47
48 } // namespace 48 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698