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

Side by Side Diff: chrome/browser/extensions/extension_messages_unittest.cc

Issue 3106018: Reapplies all the IPC system work (reverts the revert r56272). (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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
« no previous file with comments | « base/tuple.h ('k') | chrome/browser/importer/firefox_importer_unittest_utils_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/values.h"
5 #include "chrome/browser/extensions/extension_message_service.h" 6 #include "chrome/browser/extensions/extension_message_service.h"
6 #include "chrome/common/render_messages.h" 7 #include "chrome/common/render_messages.h"
7 #include "chrome/renderer/extensions/event_bindings.h" 8 #include "chrome/renderer/extensions/event_bindings.h"
8 #include "chrome/renderer/extensions/renderer_extension_bindings.h" 9 #include "chrome/renderer/extensions/renderer_extension_bindings.h"
9 #include "chrome/test/render_view_test.h" 10 #include "chrome/test/render_view_test.h"
10 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
11 12
12 static void DispatchOnConnect(int source_port_id, const std::string& name, 13 static void DispatchOnConnect(int source_port_id, const std::string& name,
13 const std::string& tab_json) { 14 const std::string& tab_json) {
14 ListValue args; 15 ListValue args;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 142
142 // Verify that we got it. 143 // Verify that we got it.
143 alert_msg = 144 alert_msg =
144 render_thread_.sink().GetUniqueMessageMatching( 145 render_thread_.sink().GetUniqueMessageMatching(
145 ViewHostMsg_RunJavaScriptMessage::ID); 146 ViewHostMsg_RunJavaScriptMessage::ID);
146 ASSERT_TRUE(alert_msg); 147 ASSERT_TRUE(alert_msg);
147 iter = IPC::SyncMessage::GetDataIterator(alert_msg); 148 iter = IPC::SyncMessage::GetDataIterator(alert_msg);
148 ASSERT_TRUE(IPC::ReadParam(alert_msg, &iter, &alert_param)); 149 ASSERT_TRUE(IPC::ReadParam(alert_msg, &iter, &alert_param));
149 EXPECT_EQ(L"disconnected: 24", alert_param.a); 150 EXPECT_EQ(L"disconnected: 24", alert_param.a);
150 } 151 }
OLDNEW
« no previous file with comments | « base/tuple.h ('k') | chrome/browser/importer/firefox_importer_unittest_utils_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698