| 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/disclosure_view_controller.h" | |
| 9 #include "testing/gtest/include/gtest/gtest.h" | |
| 10 | |
| 11 namespace { | |
| 12 class DisclosureViewControllerTest : public CocoaTest { | |
| 13 public: | |
| 14 DisclosureViewControllerTest() {} | |
| 15 | |
| 16 private: | |
| 17 DISALLOW_COPY_AND_ASSIGN(DisclosureViewControllerTest); | |
| 18 }; | |
| 19 | |
| 20 TEST_F(DisclosureViewControllerTest, Basic) { | |
| 21 // A basic test that creates a new instance and releases. | |
| 22 // Aids valgrind leak detection. | |
| 23 scoped_nsobject<DisclosureViewController> controller( | |
| 24 [[DisclosureViewController alloc] | |
| 25 initWithNibName:@"" bundle:nil disclosure:NSOnState]); | |
| 26 EXPECT_TRUE(controller.get()); | |
| 27 } | |
| 28 | |
| 29 } | |
| OLD | NEW |