hashed_extension_id_unittest.cc 577 B

1234567891011121314151617
  1. // Copyright 2018 The Chromium 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.
  4. #include "extensions/common/hashed_extension_id.h"
  5. #include "testing/gtest/include/gtest/gtest.h"
  6. namespace extensions {
  7. TEST(HashedExtensionIdTest, Basic) {
  8. const std::string kExtensionId = "abcdefghijklmnopabcdefghijklmnop";
  9. const std::string kExpectedHash = "ACD66AF886BA7B085B41B4382BC39D1855BC18FE";
  10. EXPECT_EQ(kExpectedHash, HashedExtensionId(kExtensionId).value());
  11. }
  12. } // namespace extensions