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

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: Style changes fixed for Defect 248426 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 15:54:30 Ditto here.
28 // Helper class with methods used to mock -[NSEvent phase], used by 27 // Helper class with methods used to mock -[NSEvent phase], used by
29 // |MockScrollWheelEventWithPhase()|. 28 // |MockScrollWheelEventWithPhase()|.
30 @interface MockPhaseMethods : NSObject { 29 @interface MockPhaseMethods : NSObject {
31 } 30 }
32 31
33 - (NSEventPhase)phaseBegan; 32 - (NSEventPhase)phaseBegan;
34 - (NSEventPhase)phaseChanged; 33 - (NSEventPhase)phaseChanged;
35 - (NSEventPhase)phaseEnded; 34 - (NSEventPhase)phaseEnded;
36 @end 35 @end
37 36
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 host->OnMessageReceived(*response2); 768 host->OnMessageReceived(*response2);
770 769
771 // Check that the view delegate ignored the empty unhandled wheel event. 770 // Check that the view delegate ignored the empty unhandled wheel event.
772 ASSERT_EQ(NO, view_delegate.get().unhandledWheelEventReceived); 771 ASSERT_EQ(NO, view_delegate.get().unhandledWheelEventReceived);
773 772
774 // Clean up. 773 // Clean up.
775 host->Shutdown(); 774 host->Shutdown();
776 } 775 }
777 776
778 } // namespace content 777 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698