#include "chrome/browser/web_share_target/target_util.h"
#include <string>
#include "services/network/public/cpp/resource_request_body.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace web_share_target {
std::string convertDataElementToString(const network::DataElement& element) { … }
void CheckDataElements(
const scoped_refptr<network::ResourceRequestBody>& body,
const std::vector<network::DataElement::Tag>& expected_element_types,
const std::vector<std::string>& expected_element_values) { … }
TEST(TargetUtilTest, InvalidMultipartBody) { … }
TEST(TargetUtilTest, ValidMultipartBodyForFile) { … }
TEST(TargetUtilTest, ValidMultipartBodyForText) { … }
TEST(TargetUtilTest, ValidMultipartBodyForTextAndFile) { … }
TEST(TargetUtilTest, MultipartBodyWithPercentEncoding) { … }
TEST(TargetUtilTest, InvalidApplicationBody) { … }
TEST(TargetUtilTest, ValidApplicationBody) { … }
TEST(TargetUtilTest, NeedsPercentEscapeQuote) { … }
TEST(TargetUtilTest, NeedsPercentEscape0A) { … }
TEST(TargetUtilTest, NeedsPercentEscape0D) { … }
TEST(TargetUtilTest, NoPercentEscape) { … }
}