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

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

Issue 10542038: Rewrite DownloadsApiTest in C++. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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 "chrome/browser/extensions/extension_function_test_utils.h" 5 #include "chrome/browser/extensions/extension_function_test_utils.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 function->Run(); 211 function->Run();
212 212
213 // If the RunImpl of |function| didn't already call SendResponse, run the 213 // If the RunImpl of |function| didn't already call SendResponse, run the
214 // message loop until they do. 214 // message loop until they do.
215 if (!response_delegate.HasResponse()) { 215 if (!response_delegate.HasResponse()) {
216 response_delegate.set_should_post_quit(true); 216 response_delegate.set_should_post_quit(true);
217 ui_test_utils::RunMessageLoop(); 217 ui_test_utils::RunMessageLoop();
218 } 218 }
219 219
220 EXPECT_TRUE(response_delegate.HasResponse()); 220 EXPECT_TRUE(response_delegate.HasResponse());
221 return response_delegate.GetResponse(); 221 bool result = response_delegate.GetResponse();
222 return result;
Randy Smith (Not in Mondays) 2012/06/18 18:42:58 Why?
benjhayden 2012/06/19 15:01:59 Done.
222 } 223 }
223 224
224 } // namespace extension_function_test_utils 225 } // namespace extension_function_test_utils
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698