summaryrefslogtreecommitdiffstats
path: root/mojo/public/cpp
diff options
context:
space:
mode:
authorerg <erg@chromium.org>2014-10-02 22:04:01 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-03 05:04:17 +0000
commit5a0c8781850081e5d74975b088063e700a9b6c73 (patch)
tree56208ed2bae581624db14f4d3c2d9205661a29dd /mojo/public/cpp
parent4009aabfcd0b114536d522d84685949efeaf7201 (diff)
downloadchromium_src-5a0c8781850081e5d74975b088063e700a9b6c73.zip
chromium_src-5a0c8781850081e5d74975b088063e700a9b6c73.tar.gz
chromium_src-5a0c8781850081e5d74975b088063e700a9b6c73.tar.bz2
mojom: Change array syntax from uint8[] to array<uint8>.
This makes precedence clearer in the case of nested arrays. BUG=none Review URL: https://codereview.chromium.org/610983003 Cr-Commit-Position: refs/heads/master@{#297989}
Diffstat (limited to 'mojo/public/cpp')
-rw-r--r--mojo/public/cpp/bindings/tests/serialization_warning_unittest.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/mojo/public/cpp/bindings/tests/serialization_warning_unittest.cc b/mojo/public/cpp/bindings/tests/serialization_warning_unittest.cc
index 6c30e4a..8709460 100644
--- a/mojo/public/cpp/bindings/tests/serialization_warning_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/serialization_warning_unittest.cc
@@ -99,25 +99,25 @@ TEST_F(SerializationWarningTest, StructInStruct) {
TEST_F(SerializationWarningTest, ArrayOfStructsInStruct) {
Struct4Ptr test_struct(Struct4::New());
- EXPECT_TRUE(!test_struct->array);
+ EXPECT_TRUE(!test_struct->data);
TestWarning(test_struct.Pass(),
mojo::internal::VALIDATION_ERROR_UNEXPECTED_NULL_POINTER);
test_struct = Struct4::New();
- test_struct->array.resize(1);
+ test_struct->data.resize(1);
TestWarning(test_struct.Pass(),
mojo::internal::VALIDATION_ERROR_UNEXPECTED_NULL_POINTER);
test_struct = Struct4::New();
- test_struct->array.resize(0);
+ test_struct->data.resize(0);
TestWarning(test_struct.Pass(), mojo::internal::VALIDATION_ERROR_NONE);
test_struct = Struct4::New();
- test_struct->array.resize(1);
- test_struct->array[0] = Struct1::New();
+ test_struct->data.resize(1);
+ test_struct->data[0] = Struct1::New();
TestWarning(test_struct.Pass(), mojo::internal::VALIDATION_ERROR_NONE);
}