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

Side by Side Diff: content/browser/intents/intent_injector_unittest.cc

Issue 10024066: TabContents -> WebContentsImpl, part 4. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/utf_string_conversions.h" 6 #include "base/utf_string_conversions.h"
7 #include "content/browser/intents/intent_injector.h" 7 #include "content/browser/intents/intent_injector.h"
8 #include "content/browser/intents/internal_web_intents_dispatcher.h" 8 #include "content/browser/intents/internal_web_intents_dispatcher.h"
9 #include "content/browser/renderer_host/test_render_view_host.h" 9 #include "content/browser/renderer_host/test_render_view_host.h"
10 #include "content/browser/tab_contents/test_web_contents.h" 10 #include "content/browser/web_contents/test_web_contents.h"
11 #include "content/common/intents_messages.h" 11 #include "content/common/intents_messages.h"
12 #include "content/common/view_messages.h" 12 #include "content/common/view_messages.h"
13 #include "content/test/web_contents_tester.h" 13 #include "content/test/web_contents_tester.h"
14 #include "content/test/mock_render_process_host.h" 14 #include "content/test/mock_render_process_host.h"
15 #include "ipc/ipc_channel.h" 15 #include "ipc/ipc_channel.h"
16 #include "ipc/ipc_message.h" 16 #include "ipc/ipc_message.h"
17 #include "webkit/glue/web_intent_data.h" 17 #include "webkit/glue/web_intent_data.h"
18 #include "webkit/glue/web_intent_reply_data.h" 18 #include "webkit/glue/web_intent_reply_data.h"
19 19
20 class IntentInjectorTest : public content::RenderViewHostImplTestHarness { 20 class IntentInjectorTest : public content::RenderViewHostImplTestHarness {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 std::string()); 81 std::string());
82 ASSERT_TRUE(contents()->cross_navigation_pending()); 82 ASSERT_TRUE(contents()->cross_navigation_pending());
83 ASSERT_TRUE(pending_rvh()); 83 ASSERT_TRUE(pending_rvh());
84 injector->RenderViewCreated(pending_test_rvh()); 84 injector->RenderViewCreated(pending_test_rvh());
85 85
86 // The injector is still operating on the WebContents with the ddd.com 86 // The injector is still operating on the WebContents with the ddd.com
87 // initial page, so no intent data is sent to this new renderer. 87 // initial page, so no intent data is sent to this new renderer.
88 EXPECT_TRUE(NULL == process()->sink().GetFirstMessageMatching( 88 EXPECT_TRUE(NULL == process()->sink().GetFirstMessageMatching(
89 IntentsMsg_SetWebIntentData::ID)); 89 IntentsMsg_SetWebIntentData::ID));
90 } 90 }
OLDNEW
« no previous file with comments | « content/browser/download/save_package_unittest.cc ('k') | content/browser/intents/internal_web_intents_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698