#include "components/sync/engine/nigori/nigori.h"
#include <memory>
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/time/tick_clock.h"
#include "base/time/time.h"
#include "components/sync/engine/nigori/key_derivation_params.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace syncer {
namespace {
IsNull;
NotNull;
class FakeTickClock : public base::TickClock { … };
constexpr base::TimeDelta FakeTickClock::kTicksAdvanceAfterEachCall;
TEST(SyncNigoriTest, GetKeyName) { … }
TEST(SyncNigoriTest, GetKeyNameIsConstant) { … }
TEST(SyncNigoriTest, EncryptDifferentIv) { … }
TEST(SyncNigoriTest, Decrypt) { … }
TEST(SyncNigoriTest, EncryptDecrypt) { … }
TEST(SyncNigoriTest, EncryptDecryptEmptyString) { … }
TEST(SyncNigoriTest, CorruptedIv) { … }
TEST(SyncNigoriTest, CorruptedCiphertext) { … }
TEST(SyncNigoriTest, ExportImport) { … }
TEST(SyncNigoriTest, CreateByDerivationSetsUserKey) { … }
TEST(SyncNigoriTest, ToleratesEmptyUserKey) { … }
TEST(SyncNigoriTest, CreateByDerivationShouldDeriveCorrectKeyUsingPbkdf2) { … }
TEST(SyncNigoriTest, CreateByDerivationShouldDeriveCorrectKeyUsingScrypt) { … }
TEST(SyncNigoriTest, CreateByDerivationShouldReportPbkdf2DurationInHistogram) { … }
TEST(SyncNigoriTest, CreateByDerivationShouldReportScryptDurationInHistogram) { … }
TEST(SyncNigoriTest, GenerateScryptSaltShouldReturnSaltOfCorrectSize) { … }
TEST(SyncNigoriTest, GenerateScryptSaltShouldReturnNontrivialSalt) { … }
TEST(SyncNigoriTest, ShouldFailToImportEmpty) { … }
TEST(SyncNigoriTest, ShouldFailToImportInvalid) { … }
}
}