aboutsummaryrefslogtreecommitdiff
path: root/src/crc32c/src/crc32c_portable_unittest.cc
blob: 5098e2c373ff3fd66a06446c6afc1d7ba6e95a6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2017 The CRC32C Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#include "gtest/gtest.h"

#include "./crc32c_extend_unittests.h"
#include "./crc32c_internal.h"

namespace crc32c {

struct PortableTestTraits {
  static uint32_t Extend(uint32_t crc, const uint8_t* data, size_t count) {
    return ExtendPortable(crc, data, count);
  }
};

INSTANTIATE_TYPED_TEST_SUITE_P(Portable, ExtendTest, PortableTestTraits);

}  // namespace crc32c