// Copyright 2011 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifdef UNSAFE_BUFFERS_BUILD // TODO(crbug.com/351564777): Remove this and convert code to safer constructs. #pragma allow_unsafe_buffers #endif #include "crypto/sha2.h" #include <stddef.h> #include <stdint.h> #include "testing/gtest/include/gtest/gtest.h" TEST(Sha256Test, Empty) { … } TEST(Sha256Test, Test1) { … } TEST(Sha256Test, Test1_String) { … } TEST(Sha256Test, Test2) { … } TEST(Sha256Test, Test3) { … }