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

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

Issue 2030873002: Mojo C++ bindings: rename ArrayValidateParams for clarity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-enums
Patch Set: Rebase Created 4 years, 6 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/union_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/union_unittest.cc b/mojo/public/cpp/bindings/tests/union_unittest.cc
index a5f65af52fa8ed066b24b0f7d6c0e762f5319c8a..fbb380bdb7b8985bd4e6e31be7abb259640dafe7 100644
--- a/mojo/public/cpp/bindings/tests/union_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/union_unittest.cc
@@ -440,7 +440,7 @@ TEST(UnionTest, PodUnionInArraySerialization) {
mojo::internal::FixedBufferForTesting buf(size);
mojo::internal::Array_Data<internal::PodUnion_Data>* data;
- mojo::internal::ArrayValidateParams validate_params(0, false, nullptr);
+ mojo::internal::ContainerValidateParams validate_params(0, false, nullptr);
mojo::internal::Serialize<Array<PodUnionPtr>>(array, &buf, &data,
&validate_params, nullptr);
@@ -466,7 +466,7 @@ TEST(UnionTest, PodUnionInArraySerializationWithNull) {
mojo::internal::FixedBufferForTesting buf(size);
mojo::internal::Array_Data<internal::PodUnion_Data>* data;
- mojo::internal::ArrayValidateParams validate_params(0, true, nullptr);
+ mojo::internal::ContainerValidateParams validate_params(0, true, nullptr);
mojo::internal::Serialize<Array<PodUnionPtr>>(array, &buf, &data,
&validate_params, nullptr);
@@ -495,7 +495,7 @@ TEST(UnionTest, ObjectUnionInArraySerialization) {
mojo::internal::FixedBufferForTesting buf(size);
mojo::internal::Array_Data<internal::ObjectUnion_Data>* data;
- mojo::internal::ArrayValidateParams validate_params(0, false, nullptr);
+ mojo::internal::ContainerValidateParams validate_params(0, false, nullptr);
mojo::internal::Serialize<Array<ObjectUnionPtr>>(array, &buf, &data,
&validate_params, nullptr);
@@ -705,9 +705,9 @@ TEST(UnionTest, PodUnionInMapSerialization) {
mojo::internal::FixedBufferForTesting buf(size);
mojo::internal::Map_Data<mojo::internal::String_Data*,
internal::PodUnion_Data>* data;
- mojo::internal::ArrayValidateParams validate_params(
- new mojo::internal::ArrayValidateParams(0, false, nullptr),
- new mojo::internal::ArrayValidateParams(0, false, nullptr));
+ mojo::internal::ContainerValidateParams validate_params(
+ new mojo::internal::ContainerValidateParams(0, false, nullptr),
+ new mojo::internal::ContainerValidateParams(0, false, nullptr));
mojo::internal::Serialize<Map<String, PodUnionPtr>>(
map, &buf, &data, &validate_params, &context);
@@ -733,9 +733,9 @@ TEST(UnionTest, PodUnionInMapSerializationWithNull) {
mojo::internal::FixedBufferForTesting buf(size);
mojo::internal::Map_Data<mojo::internal::String_Data*,
internal::PodUnion_Data>* data;
- mojo::internal::ArrayValidateParams validate_params(
- new mojo::internal::ArrayValidateParams(0, false, nullptr),
- new mojo::internal::ArrayValidateParams(0, true, nullptr));
+ mojo::internal::ContainerValidateParams validate_params(
+ new mojo::internal::ContainerValidateParams(0, false, nullptr),
+ new mojo::internal::ContainerValidateParams(0, true, nullptr));
mojo::internal::Serialize<Map<String, PodUnionPtr>>(
map, &buf, &data, &validate_params, &context);
« no previous file with comments | « mojo/public/cpp/bindings/tests/serialization_warning_unittest.cc ('k') | mojo/public/cpp/bindings/tests/wtf_types_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698