| 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 "chrome/browser/ui/cocoa/cocoa_test_helper.h" |  | 
| 8 #import "chrome/browser/ui/cocoa/hung_renderer_controller.h" | 7 #import "chrome/browser/ui/cocoa/hung_renderer_controller.h" | 
|  | 8 #include "chrome/browser/ui/cocoa/test/cocoa_test_helper.h" | 
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" | 
| 10 #include "testing/platform_test.h" | 10 #include "testing/platform_test.h" | 
| 11 | 11 | 
| 12 namespace { | 12 namespace { | 
| 13 | 13 | 
| 14 class HungRendererControllerTest : public CocoaTest { | 14 class HungRendererControllerTest : public CocoaTest { | 
| 15  public: | 15  public: | 
| 16   void SetUp() override { | 16   void SetUp() override { | 
| 17     CocoaTest::SetUp(); | 17     CocoaTest::SetUp(); | 
| 18     hung_renderer_controller_ = [[HungRendererController alloc] | 18     hung_renderer_controller_ = [[HungRendererController alloc] | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
| 40 TEST_F(HungRendererControllerTest, TestWaitButton) { | 40 TEST_F(HungRendererControllerTest, TestWaitButton) { | 
| 41   // We can't test waiting because we have no running process to wait | 41   // We can't test waiting because we have no running process to wait | 
| 42   // for, but we can make sure that pressing the wait button closes | 42   // for, but we can make sure that pressing the wait button closes | 
| 43   // the window. | 43   // the window. | 
| 44   [hung_renderer_controller_ showWindow:nil]; | 44   [hung_renderer_controller_ showWindow:nil]; | 
| 45   [[hung_renderer_controller_ waitButton] performClick:nil]; | 45   [[hung_renderer_controller_ waitButton] performClick:nil]; | 
| 46 } | 46 } | 
| 47 | 47 | 
| 48 }  // namespace | 48 }  // namespace | 
| 49 | 49 | 
| OLD | NEW | 
|---|