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

Side by Side Diff: chrome/browser/cocoa/blocked_popup_container_controller_unittest.mm

Issue 155071: Do some refactoring of renderer_host.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "app/app_paths.h" 7 #include "app/app_paths.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #import "chrome/browser/cocoa/blocked_popup_container_controller.h" 9 #import "chrome/browser/cocoa/blocked_popup_container_controller.h"
10 #include "chrome/browser/cocoa/browser_test_helper.h" 10 #include "chrome/browser/cocoa/browser_test_helper.h"
11 #import "chrome/browser/cocoa/cocoa_test_helper.h" 11 #import "chrome/browser/cocoa/cocoa_test_helper.h"
12 #include "chrome/browser/renderer_host/test_render_view_host.h" 12 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
13 #include "net/base/net_util.h" 13 #include "net/base/net_util.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 16
17 namespace { 17 namespace {
18 const std::string host1 = "host1"; 18 const std::string host1 = "host1";
19 } // namespace 19 } // namespace
20 20
21 class BlockedPopupContainerControllerTest : public RenderViewHostTestHarness { 21 class BlockedPopupContainerControllerTest : public RenderViewHostTestHarness {
22 public: 22 public:
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 EXPECT_TRUE([cocoa_controller_ view]); 75 EXPECT_TRUE([cocoa_controller_ view]);
76 EXPECT_TRUE([[cocoa_controller_ view] superview]); 76 EXPECT_TRUE([[cocoa_controller_ view] superview]);
77 EXPECT_TRUE([[(NSTextField*)[cocoa_controller_ label] 77 EXPECT_TRUE([[(NSTextField*)[cocoa_controller_ label]
78 stringValue] length] > 0); 78 stringValue] length] > 0);
79 79
80 // Close the popup and verify it's no longer in the view hierarchy. This 80 // Close the popup and verify it's no longer in the view hierarchy. This
81 // means HideView() has been called. 81 // means HideView() has been called.
82 [cocoa_controller_ closePopup:nil]; 82 [cocoa_controller_ closePopup:nil];
83 EXPECT_FALSE([[cocoa_controller_ view] superview]); 83 EXPECT_FALSE([[cocoa_controller_ view] superview]);
84 } 84 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698