// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/tools/huffman_trie/bit_writer.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" namespace net::huffman_trie { namespace { // Test that single bits are written to the buffer correctly. TEST(BitWriterTest, WriteBit) { … } // Test that when multiple bits are written to the buffer, they are appended // correctly. TEST(BitWriterTest, WriteBits) { … } // Test that buffering works correct when the methods are mixed. TEST(BitWriterTest, WriteBoth) { … } } // namespace } // namespace net::huffman_trie