#include "components/sync/nigori/nigori_key_bag.h"
#include <vector>
#include "components/sync/engine/nigori/key_derivation_params.h"
#include "components/sync/engine/nigori/nigori.h"
#include "components/sync/protocol/encryption.pb.h"
#include "components/sync/protocol/nigori_local_data.pb.h"
#include "components/sync/protocol/nigori_specifics.pb.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace syncer {
namespace {
Eq;
Ne;
SizeIs;
std::unique_ptr<Nigori> CreateTestNigori(const std::string& password) { … }
TEST(NigoriKeyBagTest, ShouldCreateEmpty) { … }
TEST(NigoriKeyBagTest, ShouldAddKeys) { … }
TEST(NigoriKeyBagTest, ShouldExportKey) { … }
TEST(NigoriKeyBagTest, ShouldConvertEmptyToProto) { … }
TEST(NigoriKeyBagTest, ShouldConvertNonEmptyToProto) { … }
TEST(NigoriKeyBagTest, ShouldCreateEmptyFromProto) { … }
TEST(NigoriKeyBagTest, ShouldCreateNonEmptyFromProto) { … }
TEST(NigoriKeyBagTest, ShouldCreateNonEmptyFromPartiallyInvalidProto) { … }
TEST(NigoriKeyBagTest, ShouldClone) { … }
TEST(NigoriKeyBagTest, ShouldIgnoreDeprecatedKeyNameProtoField) { … }
TEST(NigoriKeyBagTest, ShouldEncryptAndDecrypt) { … }
}
}