OLD | NEW |
| (Empty) |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "base/scoped_nsobject.h" | |
6 #include "chrome/browser/cocoa/browser_test_helper.h" | |
7 #import "chrome/browser/cocoa/cocoa_test_helper.h" | |
8 #import "chrome/browser/cocoa/vertical_layout_view.h" | |
9 #include "testing/gtest/include/gtest/gtest.h" | |
10 | |
11 namespace { | |
12 class VerticalLayoutViewTest : public CocoaTest { | |
13 public: | |
14 VerticalLayoutViewTest() {} | |
15 | |
16 private: | |
17 DISALLOW_COPY_AND_ASSIGN(VerticalLayoutViewTest); | |
18 }; | |
19 | |
20 TEST_F(VerticalLayoutViewTest, Basic) { | |
21 // A basic test that creates a new instance and releases. | |
22 // Aids valgrind leak detection. | |
23 scoped_nsobject<VerticalLayoutView> view([[VerticalLayoutView alloc] | |
24 initWithFrame:NSMakeRect(0, 0, 10, 10)]); | |
25 EXPECT_TRUE(view.get()); | |
26 } | |
27 | |
28 } | |
OLD | NEW |