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

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

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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) 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 #import "content/browser/renderer_host/text_input_client_mac.h" 5 #import "content/browser/renderer_host/text_input_client_mac.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/threading/thread.h" 9 #include "base/threading/thread.h"
10 #include "content/browser/renderer_host/mock_render_process_host.h" 10 #include "content/browser/renderer_host/mock_render_process_host.h"
11 #include "content/browser/renderer_host/render_process_host_impl.h" 11 #include "content/browser/renderer_host/render_process_host_impl.h"
12 #include "content/browser/renderer_host/render_widget_host_impl.h" 12 #include "content/browser/renderer_host/render_widget_host_impl.h"
13 #include "content/browser/renderer_host/text_input_client_message_filter.h" 13 #include "content/browser/renderer_host/text_input_client_message_filter.h"
14 #include "content/common/text_input_client_messages.h" 14 #include "content/common/text_input_client_messages.h"
15 #include "content/test//test_browser_context.h" 15 #include "content/test//test_browser_context.h"
16 #include "ipc/ipc_test_sink.h" 16 #include "ipc/ipc_test_sink.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 #include "testing/gtest_mac.h" 18 #include "testing/gtest_mac.h"
19 19
20 using content::RenderWidgetHostImpl;
21
20 namespace { 22 namespace {
21 23
22 const int64 kTaskDelayMs = 200; 24 const int64 kTaskDelayMs = 200;
23 25
24 // This test does not test the WebKit side of the dictionary system (which 26 // This test does not test the WebKit side of the dictionary system (which
25 // performs the actual data fetching), but rather this just tests that the 27 // performs the actual data fetching), but rather this just tests that the
26 // service's signaling system works. 28 // service's signaling system works.
27 class TextInputClientMacTest : public testing::Test { 29 class TextInputClientMacTest : public testing::Test {
28 public: 30 public:
29 TextInputClientMacTest() 31 TextInputClientMacTest()
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 TEST_F(TextInputClientMacTest, TimeoutSubstring) { 206 TEST_F(TextInputClientMacTest, TimeoutSubstring) {
205 NSAttributedString* string = service()->GetAttributedSubstringFromRange( 207 NSAttributedString* string = service()->GetAttributedSubstringFromRange(
206 widget(), NSMakeRange(0, 32)); 208 widget(), NSMakeRange(0, 32));
207 EXPECT_EQ(nil, string); 209 EXPECT_EQ(nil, string);
208 EXPECT_EQ(1U, ipc_sink().message_count()); 210 EXPECT_EQ(1U, ipc_sink().message_count());
209 EXPECT_TRUE(ipc_sink().GetUniqueMessageMatching( 211 EXPECT_TRUE(ipc_sink().GetUniqueMessageMatching(
210 TextInputClientMsg_StringForRange::ID)); 212 TextInputClientMsg_StringForRange::ID));
211 } 213 }
212 214
213 } // namespace 215 } // namespace
OLDNEW
« no previous file with comments | « content/browser/renderer_host/text_input_client_mac.mm ('k') | content/browser/speech/speech_input_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698