mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2026-06-02 04:16:31 +03:00
Import chromium-64.0.3282.140
This commit is contained in:
22
net/http2/decoder/http2_structure_decoder_test_util.cc
Normal file
22
net/http2/decoder/http2_structure_decoder_test_util.cc
Normal file
@@ -0,0 +1,22 @@
|
||||
// Copyright 2017 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 "net/http2/decoder/http2_structure_decoder_test_util.h"
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
namespace net {
|
||||
namespace test {
|
||||
|
||||
// static
|
||||
void Http2StructureDecoderPeer::Randomize(Http2StructureDecoder* p,
|
||||
RandomBase* rng) {
|
||||
p->offset_ = rng->Rand32();
|
||||
for (size_t i = 0; i < sizeof p->buffer_; ++i) {
|
||||
p->buffer_[i] = rng->Rand8();
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace test
|
||||
} // namespace net
|
||||
Reference in New Issue
Block a user