// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifdef UNSAFE_BUFFERS_BUILD // TODO(crbug.com/40285824): Remove this and convert code to safer constructs. #pragma allow_unsafe_buffers #endif #include "remoting/base/typed_buffer.h" #include <utility> #include "testing/gtest/include/gtest/gtest.h" namespace remoting { namespace { struct Data { … }; } // namespace // Check that the default constructor does not allocate the buffer. TEST(TypedBufferTest, Empty) { … } // Check that allocating zero-size structure does not allocate the buffer. TEST(TypedBufferTest, ZeroSize) { … } // Test creation of a buffer and verify that the buffer accessors work. TEST(TypedBufferTest, Basic) { … } // Test passing ownership. TEST(TypedBufferTest, Pass) { … } // Test swapping ownership. TEST(TypedBufferTest, Swap) { … } TEST(TypedBufferTest, GetAtOffset) { … } } // namespace remoting