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

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

Issue 225093019: Zoom Extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. 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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_TEST_UTILS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_TEST_UTILS_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_TEST_UTILS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_TEST_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // that |function| expects. That way, we know that we are testing something 113 // that |function| expects. That way, we know that we are testing something
114 // close to what the bindings would actually send. 114 // close to what the bindings would actually send.
115 // 115 //
116 // TODO(aa): I'm concerned that this style won't scale to all the bits and bobs 116 // TODO(aa): I'm concerned that this style won't scale to all the bits and bobs
117 // we're going to need to frob for all the different extension functions. But 117 // we're going to need to frob for all the different extension functions. But
118 // we can refactor when we see what is needed. 118 // we can refactor when we see what is needed.
119 bool RunFunction(UIThreadExtensionFunction* function, 119 bool RunFunction(UIThreadExtensionFunction* function,
120 const std::string& args, 120 const std::string& args,
121 Browser* browser, 121 Browser* browser,
122 RunFunctionFlags flags); 122 RunFunctionFlags flags);
123 bool RunFunction(UIThreadExtensionFunction* function,
124 const std::string& args,
125 Browser* browser);
123 126
124 } // namespace extension_function_test_utils 127 } // namespace extension_function_test_utils
125 128
126 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_TEST_UTILS_H_ 129 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698