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

Unified Diff: mojo/public/cpp/bindings/lib/validation_errors.cc

Issue 1552983003: Fix a bunch of mojo_public_*_unittests with the new EDK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 12 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/lib/validation_errors.cc
diff --git a/mojo/public/cpp/bindings/lib/validation_errors.cc b/mojo/public/cpp/bindings/lib/validation_errors.cc
index 79f93eb31d8a2dfce23b215c2bbeab572469a583..4db845596536cbfc276ad2497104c09ec5d1e6d5 100644
--- a/mojo/public/cpp/bindings/lib/validation_errors.cc
+++ b/mojo/public/cpp/bindings/lib/validation_errors.cc
@@ -66,8 +66,9 @@ void ReportValidationError(ValidationError error, const char* description) {
}
}
-ValidationErrorObserverForTesting::ValidationErrorObserverForTesting()
- : last_error_(VALIDATION_ERROR_NONE) {
+ValidationErrorObserverForTesting::ValidationErrorObserverForTesting(
+ const Callback<void()>& callback)
+ : last_error_(VALIDATION_ERROR_NONE), callback_(callback) {
MOJO_DCHECK(!g_validation_error_observer);
g_validation_error_observer = this;
}
« no previous file with comments | « mojo/public/cpp/bindings/lib/validation_errors.h ('k') | mojo/public/cpp/bindings/tests/associated_interface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698