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

Side by Side Diff: chrome/browser/search/iframe_source_unittest.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/search/iframe_source.h" 5 #include "chrome/browser/search/iframe_source.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ref_counted_memory.h" 8 #include "base/memory/ref_counted_memory.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 &resource_context_, 106 &resource_context_,
107 render_process_id, 107 render_process_id,
108 render_frame_id, 108 render_frame_id,
109 MSG_ROUTING_NONE, 109 MSG_ROUTING_NONE,
110 false, // is_main_frame 110 false, // is_main_frame
111 false, // parent_is_main_frame 111 false, // parent_is_main_frame
112 true, // allow_download 112 true, // allow_download
113 false, // is_async 113 false, // is_async
114 false); // is_using_lofi 114 false); // is_using_lofi
115 } 115 }
116 return request.Pass(); 116 return request;
117 } 117 }
118 118
119 void SendResource(int resource_id) { 119 void SendResource(int resource_id) {
120 source()->SendResource(resource_id, callback_); 120 source()->SendResource(resource_id, callback_);
121 } 121 }
122 122
123 void SendJSWithOrigin( 123 void SendJSWithOrigin(
124 int resource_id, 124 int resource_id,
125 int render_process_id, 125 int render_process_id,
126 int render_frame_id) { 126 int render_frame_id) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 } 193 }
194 194
195 TEST_F(IframeSourceTest, SendJSWithOrigin) { 195 TEST_F(IframeSourceTest, SendJSWithOrigin) {
196 SendJSWithOrigin(IDR_MOST_VISITED_TITLE_JS, kInstantRendererPID, 0); 196 SendJSWithOrigin(IDR_MOST_VISITED_TITLE_JS, kInstantRendererPID, 0);
197 EXPECT_FALSE(response_string().empty()); 197 EXPECT_FALSE(response_string().empty());
198 SendJSWithOrigin(IDR_MOST_VISITED_TITLE_JS, kNonInstantRendererPID, 0); 198 SendJSWithOrigin(IDR_MOST_VISITED_TITLE_JS, kNonInstantRendererPID, 0);
199 EXPECT_FALSE(response_string().empty()); 199 EXPECT_FALSE(response_string().empty());
200 SendJSWithOrigin(IDR_MOST_VISITED_TITLE_JS, kInvalidRendererPID, 0); 200 SendJSWithOrigin(IDR_MOST_VISITED_TITLE_JS, kInvalidRendererPID, 0);
201 EXPECT_TRUE(response_string().empty()); 201 EXPECT_TRUE(response_string().empty());
202 } 202 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698