| Index: mojo/public/cpp/bindings/tests/buffer_unittest.cc
|
| diff --git a/mojo/public/cpp/bindings/tests/buffer_unittest.cc b/mojo/public/cpp/bindings/tests/buffer_unittest.cc
|
| index 317a2a516025a237b2e6246163e41f968ba9d09e..96acdd90c8ef3e8ce9f55e8452c9b2ce3e4b2de9 100644
|
| --- a/mojo/public/cpp/bindings/tests/buffer_unittest.cc
|
| +++ b/mojo/public/cpp/bindings/tests/buffer_unittest.cc
|
| @@ -21,6 +21,14 @@ bool IsZero(void* p_buf, size_t size) {
|
| return true;
|
| }
|
|
|
| +// Tests that you can create a FixedBuffer whose underlying buffer size is not
|
| +// a multiple of 8.
|
| +TEST(FixedBufferTest, UnAlignedBufferSized) {
|
| + char char_buf[10] = {};
|
| + internal::FixedBuffer fixed_buf;
|
| + fixed_buf.Initialize(char_buf, sizeof(char_buf));
|
| +}
|
| +
|
| // Tests that FixedBuffer allocates memory aligned to 8 byte boundaries.
|
| TEST(FixedBufferTest, Alignment) {
|
| internal::FixedBufferForTesting buf(internal::Align(10) * 2);
|
|
|