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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_mac_unittest.mm

Issue 6575009: Move files out of chrome\browser\renderer_host\test alongside their source. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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) 2010 The Chromium Authors. All rights reserved. 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 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 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" 5 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h"
6 6
7 #include "base/mac/scoped_nsautorelease_pool.h" 7 #include "base/mac/scoped_nsautorelease_pool.h"
8 #include "chrome/browser/browser_thread.h"
9 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
10 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 8 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
11 #include "chrome/browser/ui/cocoa/test_event_utils.h" 9 #include "chrome/browser/ui/cocoa/test_event_utils.h"
10 #include "content/browser/browser_thread.h"
11 #include "content/browser/renderer_host/test_render_view_host.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 #include "webkit/plugins/npapi/webplugin.h" 13 #include "webkit/plugins/npapi/webplugin.h"
14 14
15 class RenderWidgetHostViewMacTest : public RenderViewHostTestHarness { 15 class RenderWidgetHostViewMacTest : public RenderViewHostTestHarness {
16 public: 16 public:
17 RenderWidgetHostViewMacTest() : old_rwhv_(NULL), rwhv_mac_(NULL) {} 17 RenderWidgetHostViewMacTest() : old_rwhv_(NULL), rwhv_mac_(NULL) {}
18 18
19 virtual void SetUp() { 19 virtual void SetUp() {
20 // Set up Cocoa. 20 // Set up Cocoa.
21 [CrApplication sharedApplication]; 21 [CrApplication sharedApplication];
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 184
185 // A click on the accelerated view should focus the RWHVCocoa. 185 // A click on the accelerated view should focus the RWHVCocoa.
186 std::pair<NSEvent*, NSEvent*> clicks = 186 std::pair<NSEvent*, NSEvent*> clicks =
187 test_event_utils::MouseClickInView(accelerated_view, 1); 187 test_event_utils::MouseClickInView(accelerated_view, 1);
188 [rwhv_cocoa_.get() mouseDown:clicks.first]; 188 [rwhv_cocoa_.get() mouseDown:clicks.first];
189 EXPECT_EQ(rwhv_cocoa_.get(), [window firstResponder]); 189 EXPECT_EQ(rwhv_cocoa_.get(), [window firstResponder]);
190 190
191 // Clean up. 191 // Clean up.
192 rwhv_mac_->DestroyFakePluginWindowHandle(accelerated_handle); 192 rwhv_mac_->DestroyFakePluginWindowHandle(accelerated_handle);
193 } 193 }
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_manager_unittest.cc ('k') | chrome/browser/renderer_host/test/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698