chromium/third_party/crashpad/crashpad/util/net/http_body_test.cc

// Copyright 2014 The Crashpad Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "util/net/http_body.h"

#include <string.h>

#include "gtest/gtest.h"
#include "test/test_paths.h"
#include "util/misc/implicit_cast.h"
#include "util/net/http_body_test_util.h"

namespace crashpad {
namespace test {
namespace {

void ExpectBufferSet(const uint8_t* actual,
                     uint8_t expected_byte,
                     size_t num_expected_bytes) {}

TEST(StringHTTPBodyStream, EmptyString) {}

TEST(StringHTTPBodyStream, SmallString) {}

TEST(StringHTTPBodyStream, MultipleReads) {}

TEST(FileReaderHTTPBodyStream, ReadASCIIFile) {}

TEST(FileReaderHTTPBodyStream, ReadBinaryFile) {}

TEST(CompositeHTTPBodyStream, TwoEmptyStrings) {}

class CompositeHTTPBodyStreamBufferSize
    : public testing::TestWithParam<size_t> {};

TEST_P(CompositeHTTPBodyStreamBufferSize, ThreeStringParts) {}

TEST_P(CompositeHTTPBodyStreamBufferSize, StringsAndFile) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace
}  // namespace test
}  // namespace crashpad