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

Unified Diff: third_party/mojo/src/mojo/public/cpp/bindings/tests/serialization_warning_unittest.cc

Issue 910883002: Update mojo sdk to rev 8af2ccff2eee4bfca1043015abee30482a030b30 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Apply 9f87aeadbda22441b7d469e596f7bd7d0d73e2a8 (https://codereview.chromium.org/908973002/) Created 5 years, 10 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: third_party/mojo/src/mojo/public/cpp/bindings/tests/serialization_warning_unittest.cc
diff --git a/third_party/mojo/src/mojo/public/cpp/bindings/tests/serialization_warning_unittest.cc b/third_party/mojo/src/mojo/public/cpp/bindings/tests/serialization_warning_unittest.cc
index 4359be82733da7cbb635210cb3013c975dfd087b..f2e693dd7f5a9f75062156e2ee8b3405d8f56a51 100644
--- a/third_party/mojo/src/mojo/public/cpp/bindings/tests/serialization_warning_unittest.cc
+++ b/third_party/mojo/src/mojo/public/cpp/bindings/tests/serialization_warning_unittest.cc
@@ -46,6 +46,18 @@ class SerializationWarningTest : public testing::Test {
template <typename T>
void TestWarning(StructPtr<T> obj,
mojo::internal::ValidationError expected_warning) {
+ TestStructWarningImpl<T>(obj.Pass(), expected_warning);
+ }
+
+ template <typename T>
+ void TestWarning(InlinedStructPtr<T> obj,
+ mojo::internal::ValidationError expected_warning) {
+ TestStructWarningImpl<T>(obj.Pass(), expected_warning);
+ }
+
+ template <typename T, typename TPtr>
+ void TestStructWarningImpl(TPtr obj,
+ mojo::internal::ValidationError expected_warning) {
warning_observer_.set_last_warning(mojo::internal::VALIDATION_ERROR_NONE);
mojo::internal::FixedBuffer buf(GetSerializedSize_(obj));

Powered by Google App Engine
This is Rietveld 408576698