// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "services/preferences/tracked/pref_hash_calculator.h" #include <memory> #include <string> #include <utility> #include "base/strings/string_util.h" #include "base/values.h" #include "testing/gtest/include/gtest/gtest.h" TEST(PrefHashCalculatorTest, TestCurrentAlgorithm) { … } // Tests the output against a known value to catch unexpected algorithm changes. // The test hashes below must NEVER be updated, the serialization algorithm used // must always be able to generate data that will produce these exact hashes. TEST(PrefHashCalculatorTest, CatchHashChanges) { … } TEST(PrefHashCalculatorTest, TestCompatibilityWithLegacyDeviceId) { … } TEST(PrefHashCalculatorTest, TestNotCompatibleWithEmptyLegacyDeviceId) { … }