• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 The CRC32C Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. See the AUTHORS file for names of contributors.
4 
5 #include "gtest/gtest.h"
6 
7 #include "./crc32c_arm64.h"
8 #include "./crc32c_extend_unittests.h"
9 
10 namespace crc32c {
11 
12 #if HAVE_ARM64_CRC32C
13 
14 struct Arm64TestTraits {
Extendcrc32c::Arm64TestTraits15   static uint32_t Extend(uint32_t crc, const uint8_t* data, size_t count) {
16     return ExtendArm64(crc, data, count);
17   }
18 };
19 
20 INSTANTIATE_TYPED_TEST_SUITE_P(Arm64, ExtendTest, Arm64TestTraits);
21 
22 #endif  // HAVE_ARM64_CRC32C
23 
24 }  // namespace crc32c
25