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

Unified Diff: content/browser/websockets/websocket_manager_unittest.cc

Issue 2589663003: mojo:: Rename mojo::GetProxy() to mojo::MakeRequest() (Closed)
Patch Set: Rebase Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/websockets/websocket_manager_unittest.cc
diff --git a/content/browser/websockets/websocket_manager_unittest.cc b/content/browser/websockets/websocket_manager_unittest.cc
index 22cb7c4d43fb478a5b5b68dd11200d9ff912ec26..2c9b37525cfcd1accd59644876bb368789e0be0b 100644
--- a/content/browser/websockets/websocket_manager_unittest.cc
+++ b/content/browser/websockets/websocket_manager_unittest.cc
@@ -98,14 +98,14 @@ class WebSocketManagerTest : public ::testing::Test {
void AddMultipleChannels(int number_of_channels) {
for (int i = 0; i < number_of_channels; ++i) {
blink::mojom::WebSocketPtr websocket;
- websocket_manager_->DoCreateWebSocket(mojo::GetProxy(&websocket));
+ websocket_manager_->DoCreateWebSocket(mojo::MakeRequest(&websocket));
}
}
void AddAndCancelMultipleChannels(int number_of_channels) {
for (int i = 0; i < number_of_channels; ++i) {
blink::mojom::WebSocketPtr websocket;
- websocket_manager_->DoCreateWebSocket(mojo::GetProxy(&websocket));
+ websocket_manager_->DoCreateWebSocket(mojo::MakeRequest(&websocket));
websocket_manager_->sockets().back()->SimulateConnectionError();
}
}
@@ -124,7 +124,7 @@ TEST_F(WebSocketManagerTest, Construct) {
TEST_F(WebSocketManagerTest, CreateWebSocket) {
blink::mojom::WebSocketPtr websocket;
- websocket_manager()->DoCreateWebSocket(mojo::GetProxy(&websocket));
+ websocket_manager()->DoCreateWebSocket(mojo::MakeRequest(&websocket));
EXPECT_EQ(1U, websocket_manager()->sockets().size());
}
@@ -132,7 +132,7 @@ TEST_F(WebSocketManagerTest, CreateWebSocket) {
TEST_F(WebSocketManagerTest, SendFrameButNotConnectedYet) {
blink::mojom::WebSocketPtr websocket;
- websocket_manager()->DoCreateWebSocket(mojo::GetProxy(&websocket));
+ websocket_manager()->DoCreateWebSocket(mojo::MakeRequest(&websocket));
// This should not crash.
mojo::Array<uint8_t> data;
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698