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

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

Issue 225093019: Zoom Extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Using callbacks instead of zoom IDs. Created 6 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 "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/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // message loop until they do. 263 // message loop until they do.
264 if (!response_delegate.HasResponse()) { 264 if (!response_delegate.HasResponse()) {
265 response_delegate.set_should_post_quit(true); 265 response_delegate.set_should_post_quit(true);
266 content::RunMessageLoop(); 266 content::RunMessageLoop();
267 } 267 }
268 268
269 EXPECT_TRUE(response_delegate.HasResponse()); 269 EXPECT_TRUE(response_delegate.HasResponse());
270 return response_delegate.GetResponse(); 270 return response_delegate.GetResponse();
271 } 271 }
272 272
273 bool RunFunction(UIThreadExtensionFunction* function,
274 const std::string& args,
275 Browser* browser) {
276 return RunFunction(function, args, browser, NONE);
not at google - send to devlin 2014/04/09 03:52:11 listing NONE in your tests doesn't seem like a big
paulmeyer 2014/04/11 03:01:02 Done.
277 }
278
273 } // namespace extension_function_test_utils 279 } // namespace extension_function_test_utils
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698