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

Unified Diff: device/u2f/u2f_register_unittest.cc

Issue 2839043002: Pass u2f message callback vector as a const reference (Closed)
Patch Set: Change response callback to const ref Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/u2f/u2f_register.cc ('k') | device/u2f/u2f_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/u2f/u2f_register_unittest.cc
diff --git a/device/u2f/u2f_register_unittest.cc b/device/u2f/u2f_register_unittest.cc
index 2d0d2d4f999161ee504e123b4359e63b7adff1a6..6b183da56e302e3a9645a0f0a54a966360a08a1b 100644
--- a/device/u2f/u2f_register_unittest.cc
+++ b/device/u2f/u2f_register_unittest.cc
@@ -38,7 +38,7 @@ class TestRegisterCallback {
~TestRegisterCallback() {}
void ReceivedCallback(U2fReturnCode status_code,
- std::vector<uint8_t> response) {
+ const std::vector<uint8_t>& response) {
response_ = std::make_pair(status_code, response);
closure_.Run();
}
« no previous file with comments | « device/u2f/u2f_register.cc ('k') | device/u2f/u2f_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698