chromium/third_party/crashpad/crashpad/snapshot/test/test_cpu_context.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 "snapshot/test/test_cpu_context.h"

#include <string.h>
#include <sys/types.h>

#include <iterator>

namespace crashpad {
namespace test {

namespace {

// This is templatized because the CPUContextX86::Fxsave and
// CPUContextX86_64::Fxsave are nearly identical but have different sizes for
// the members |xmm|, |reserved_4|, and |available|.
template <typename FxsaveType>
void InitializeCPUContextFxsave(FxsaveType* fxsave, uint32_t* seed) {}

}  // namespace

void InitializeCPUContextX86Fxsave(CPUContextX86::Fxsave* fxsave,
                                   uint32_t* seed) {}

void InitializeCPUContextX86_64Fxsave(CPUContextX86_64::Fxsave* fxsave,
                                      uint32_t* seed) {}

void InitializeCPUContextX86(CPUContext* context, uint32_t seed) {}

void InitializeCPUContextX86_64(CPUContext* context, uint32_t seed) {}

void InitializeCPUContextARM(CPUContext* context, uint32_t seed) {}

void InitializeCPUContextARM64(CPUContext* context, uint32_t seed) {}

void InitializeCPUContextMIPS(CPUContext* context, uint32_t seed) {}

void InitializeCPUContextMIPS64(CPUContext* context, uint32_t seed) {}

void InitializeCPUContextRISCV64(CPUContext* context, uint32_t seed) {}

}  // namespace test
}  // namespace crashpad