Commit 0a9f0146 authored by Ryan Hamilton's avatar Ryan Hamilton Committed by Commit Bot

Add proof verification details to quic_stream_factory_fuzzer.cc

BUG=784145

Cq-Include-Trybots: master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: Id101b85d3ef54d715bd3be526880ee1e835511ef
Reviewed-on: https://chromium-review.googlesource.com/767057Reviewed-by: 's avatarBuck Krasic <ckrasic@chromium.org>
Commit-Queue: Ryan Hamilton <rch@chromium.org>
Cr-Commit-Position: refs/heads/master@{#516135}
parent 7b6032b3
......@@ -21,6 +21,9 @@
#include "net/socket/fuzzed_socket_factory.h"
#include "net/ssl/channel_id_service.h"
#include "net/ssl/default_channel_id_store.h"
#include "net/test/cert_test_util.h"
#include "net/test/gtest_util.h"
#include "net/test/test_data_directory.h"
namespace net {
......@@ -62,10 +65,14 @@ struct Env {
channel_id_service =
std::make_unique<ChannelIDService>(new DefaultChannelIDStore(nullptr));
cert_transparency_verifier = std::make_unique<MultiLogCTVerifier>();
verify_details.cert_verify_result.verified_cert =
ImportCertFromFile(GetTestCertsDirectory(), "wildcard.pem");
verify_details.cert_verify_result.is_issued_by_known_root = true;
}
MockClock clock;
scoped_refptr<SSLConfigService> ssl_config_service;
ProofVerifyDetailsChromium verify_details;
MockCryptoClientStreamFactory crypto_client_stream_factory;
HostPortPair host_port_pair;
MockRandom random_generator;
......@@ -101,6 +108,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
bool estimate_initial_rtt = data_provider.ConsumeBool();
bool enable_token_binding = data_provider.ConsumeBool();
env->crypto_client_stream_factory.AddProofVerifyDetails(&env->verify_details);
if (migrate_sessions_early)
migrate_sessions_on_network_change = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment