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

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

Issue 342143004: Defect 248426: Speak rendered text when no selection is made on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverted render_view_impl IPC signatures to its original state Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/renderer_host/render_widget_host_view_mac.h" 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
6 6
7 #include "base/mac/mac_util.h" 7 #include "base/mac/mac_util.h"
8 #include "base/mac/scoped_nsautorelease_pool.h" 8 #include "base/mac/scoped_nsautorelease_pool.h"
9 #include "base/mac/sdk_forward_declarations.h" 9 #include "base/mac/sdk_forward_declarations.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "content/browser/browser_thread_impl.h" 11 #include "content/browser/browser_thread_impl.h"
12 #include "content/browser/renderer_host/render_widget_host_delegate.h" 12 #include "content/browser/renderer_host/render_widget_host_delegate.h"
13 #include "content/common/gpu/gpu_messages.h" 13 #include "content/common/gpu/gpu_messages.h"
14 #include "content/common/input_messages.h" 14 #include "content/common/input_messages.h"
15 #include "content/common/view_messages.h" 15 #include "content/common/view_messages.h"
16 #include "content/public/browser/notification_types.h" 16 #include "content/public/browser/notification_types.h"
17 #include "content/public/browser/render_widget_host_view_mac_delegate.h" 17 #include "content/public/browser/render_widget_host_view_mac_delegate.h"
18 #include "content/public/test/mock_render_process_host.h" 18 #include "content/public/test/mock_render_process_host.h"
19 #include "content/public/test/test_browser_context.h" 19 #include "content/public/test/test_browser_context.h"
20 #include "content/public/test/test_utils.h" 20 #include "content/public/test/test_utils.h"
21 #include "content/test/test_render_view_host.h" 21 #include "content/test/test_render_view_host.h"
22 #include "testing/gmock/include/gmock/gmock.h" 22 #include "testing/gmock/include/gmock/gmock.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 #include "ui/events/test/cocoa_test_event_utils.h" 24 #include "ui/events/test/cocoa_test_event_utils.h"
25 #import "ui/gfx/test/ui_cocoa_test_helper.h" 25 #import "ui/gfx/test/ui_cocoa_test_helper.h"
26 26
27
Alexei Svitkine (slow) 2014/06/27 13:01:34 You still have an unnecessary whitespace diff here
27 // Helper class with methods used to mock -[NSEvent phase], used by 28 // Helper class with methods used to mock -[NSEvent phase], used by
28 // |MockScrollWheelEventWithPhase()|. 29 // |MockScrollWheelEventWithPhase()|.
29 @interface MockPhaseMethods : NSObject { 30 @interface MockPhaseMethods : NSObject {
30 } 31 }
31 32
32 - (NSEventPhase)phaseBegan; 33 - (NSEventPhase)phaseBegan;
33 - (NSEventPhase)phaseChanged; 34 - (NSEventPhase)phaseChanged;
34 - (NSEventPhase)phaseEnded; 35 - (NSEventPhase)phaseEnded;
35 @end 36 @end
36 37
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 host->OnMessageReceived(*response2); 769 host->OnMessageReceived(*response2);
769 770
770 // Check that the view delegate ignored the empty unhandled wheel event. 771 // Check that the view delegate ignored the empty unhandled wheel event.
771 ASSERT_EQ(NO, view_delegate.get().unhandledWheelEventReceived); 772 ASSERT_EQ(NO, view_delegate.get().unhandledWheelEventReceived);
772 773
773 // Clean up. 774 // Clean up.
774 host->Shutdown(); 775 host->Shutdown();
775 } 776 }
776 777
777 } // namespace content 778 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698