|
Ada 4.1.1
Fast spec-compliant URL parser
|
#include "gtest/gtest.h"#include <cstdint>#include <cstring>#include <string>#include <vector>#include "idna.h"#include "../src/raw_inflate.hpp"#include "../src/table_store.hpp"Go to the source code of this file.
Namespaces | |
| namespace | anonymous_namespace{raw_inflate_tests.cpp} |
Functions | |
| TEST (RawInflate, FixedHuffmanHello) | |
| TEST (RawInflate, RejectsTruncatedInput) | |
| TEST (RawInflate, RejectsTinyOutputBuffer) | |
| TEST (RawInflate, HuffBuildFixedLitLen) | |
| TEST (RawInflate, TableBlobInflatesViaEnsureTables) | |
| TEST (RawInflate, LittleEndianWordsConvertToHost) | |
| TEST (RawInflate, HostEndianTablesServeUnicodeIdna) | |
Variables | |
| constexpr uint8_t | anonymous_namespace{raw_inflate_tests.cpp}::kHelloRaw [] = {203, 72, 205, 201, 201, 7, 0} |
| TEST | ( | RawInflate | , |
| FixedHuffmanHello | ) |
Definition at line 24 of file raw_inflate_tests.cpp.
References ada::idna::deflate::inflate_raw(), and anonymous_namespace{raw_inflate_tests.cpp}::kHelloRaw.
| TEST | ( | RawInflate | , |
| HostEndianTablesServeUnicodeIdna | ) |
Definition at line 89 of file raw_inflate_tests.cpp.
References ada::idna::to_ascii(), and ada::idna::valid_name_code_point().
| TEST | ( | RawInflate | , |
| HuffBuildFixedLitLen | ) |
Definition at line 46 of file raw_inflate_tests.cpp.
References ada::idna::deflate::Huff::build(), ada::idna::deflate::Huff::counts, and ada::idna::deflate::Huff::max_bits.
| TEST | ( | RawInflate | , |
| LittleEndianWordsConvertToHost | ) |
Definition at line 73 of file raw_inflate_tests.cpp.
References ada::idna::detail::bswap_inplace().
| TEST | ( | RawInflate | , |
| RejectsTinyOutputBuffer | ) |
Definition at line 39 of file raw_inflate_tests.cpp.
References ada::idna::deflate::inflate_raw(), and anonymous_namespace{raw_inflate_tests.cpp}::kHelloRaw.
| TEST | ( | RawInflate | , |
| RejectsTruncatedInput | ) |
Definition at line 32 of file raw_inflate_tests.cpp.
References ada::idna::deflate::inflate_raw(), and anonymous_namespace{raw_inflate_tests.cpp}::kHelloRaw.
| TEST | ( | RawInflate | , |
| TableBlobInflatesViaEnsureTables | ) |
Definition at line 60 of file raw_inflate_tests.cpp.
References ada::idna::ensure_tables(), ada::idna::tables_are_ready(), and ada::idna::to_ascii().