// 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/trie/trie_bit_buffer.h" #include "net/tools/huffman_trie/bit_writer.h" #include "net/tools/huffman_trie/huffman/huffman_builder.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" namespace net::huffman_trie { namespace { // Test writing single bits to the buffer. TEST(TrieBitBufferTest, WriteBit) { … } // Test writing multiple bits at once. Specifically, that the correct bits are // written and byte boundaries are respected. TEST(TrieBitBufferTest, WriteBits) { … } // Test writing position (delta's). TEST(TrieBitBufferTest, WritePosition) { … } // Test writing characters to the buffer using Huffman. TEST(TrieBitBufferTest, WriteChar) { … } // Test writing a mix of items. Specifically, that the correct values are // written in the correct order and byte boundaries are respected. TEST(TrieBitBufferTest, WriteMix) { … } } // namespace } // namespace net::huffman_trie