blob: 6d44971375dbe58cdba57b36029cb19bf2124049 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <map>
#include <string>
#include "base/strings/string16.h"
namespace chrome_cleaner {
// Verifies that the supplied multipart MIME message body is plausibly
// formatted. Adds non-fatal GTest failures if verification fails.
// @param boundary The boundary specified in the Content-Type header that
// accompanied the body.
// @param parameters The parameters that are expected to be encoded in the body.
// @param file The file contents that are expdected to be encoded in the body.
// @param file_part_name The name expected to be assigned to the file parameter.
void ExpectMultipartMimeMessageIsPlausible(
const base::string16& boundary,
const std::map<base::string16, base::string16>& parameters,
const std::string& file,
const std::string& file_part_name,
const std::string& body);
} // namespace chrome_cleaner