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

Unified Diff: headless/lib/browser/devtools_api/client_api_generator_unittest.py

Issue 2862843002: headless: Avoid copies for string parameters in DevTools bindings (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « headless/lib/browser/devtools_api/client_api_generator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/browser/devtools_api/client_api_generator_unittest.py
diff --git a/headless/lib/browser/devtools_api/client_api_generator_unittest.py b/headless/lib/browser/devtools_api/client_api_generator_unittest.py
index af1f44b900ed1ea18fbd8dca828b56b9dc00672d..aed56599d24337d6e0cd393dbff209528d503663 100755
--- a/headless/lib/browser/devtools_api/client_api_generator_unittest.py
+++ b/headless/lib/browser/devtools_api/client_api_generator_unittest.py
@@ -147,6 +147,7 @@ class ClientApiGeneratorTest(unittest.TestCase):
type = json_api['domains'][0]['types'][0]
resolved = client_api_generator.ResolveType(type)
self.assertEqual('std::string', resolved['raw_type'])
+ self.assertEqual('const std::string&', resolved['pass_type'])
def test_ObjectType(self):
json_api = {
« no previous file with comments | « headless/lib/browser/devtools_api/client_api_generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698