// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_SYNC_TEST_FAKE_CRYPTOGRAPHER_H_ #define COMPONENTS_SYNC_TEST_FAKE_CRYPTOGRAPHER_H_ #include <memory> #include <set> #include <string> #include <vector> #include "base/notreached.h" #include "components/sync/engine/nigori/cryptographer.h" namespace syncer { // An implementation of Cryptographer that encrypts data by trivially combining // the input with the encryption key identifier. Multiple keys can be made // available to the class via AddEncryptionKey(), and data encrypted with any // of the available keys can be decrypted. The concept of "key name" is simply // the string identifier used when adding the key. class FakeCryptographer : public Cryptographer { … }; } // namespace syncer #endif // COMPONENTS_SYNC_TEST_FAKE_CRYPTOGRAPHER_H_