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

Unified Diff: mojo/public/cpp/bindings/tests/request_response_unittest.cc

Issue 272323003: Mojo: Implement support for |Foo&| mojom syntax (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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
Index: mojo/public/cpp/bindings/tests/request_response_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/request_response_unittest.cc b/mojo/public/cpp/bindings/tests/request_response_unittest.cc
index c6cf11b27d69136ee9b9ea2efff858027d9c5dbf..338d9684dfdf94c440e9ca3a51dffdc472d611e4 100644
--- a/mojo/public/cpp/bindings/tests/request_response_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/request_response_unittest.cc
@@ -50,7 +50,7 @@ class ProviderImpl : public InterfaceImpl<sample::Provider> {
class StringRecorder {
public:
- StringRecorder(std::string* buf) : buf_(buf) {
+ explicit StringRecorder(std::string* buf) : buf_(buf) {
}
void Run(const String& a) const {
*buf_ = a;
@@ -64,7 +64,7 @@ class StringRecorder {
class EnumRecorder {
public:
- EnumRecorder(sample::Enum* value) : value_(value) {
+ explicit EnumRecorder(sample::Enum* value) : value_(value) {
}
void Run(sample::Enum a) const {
*value_ = a;
« no previous file with comments | « mojo/public/cpp/bindings/tests/handle_passing_unittest.cc ('k') | mojo/public/cpp/bindings/tests/sample_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698