#include "components/sync/nigori/nigori_state.h"
#include <utility>
#include <vector>
#include "components/sync/base/time.h"
#include "components/sync/engine/nigori/cross_user_sharing_public_private_key_pair.h"
#include "components/sync/engine/nigori/key_derivation_params.h"
#include "components/sync/engine/nigori/nigori.h"
#include "components/sync/nigori/cryptographer_impl.h"
#include "components/sync/nigori/keystore_keys_cryptographer.h"
#include "components/sync/protocol/nigori_local_data.pb.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace syncer {
namespace {
NigoriSpecifics;
Eq;
Ne;
TEST(NigoriStateTest, ShouldConvertCustomPassphraseStateToSpecifics) { … }
TEST(NigoriStateTest, ShouldConvertKeystoreStateToSpecifics) { … }
TEST(NigoriStateTest, ShouldConvertPublicKeyStateToSpecifics) { … }
TEST(NigoriStateTest, ShouldContainPublicKeyInLocalProto) { … }
TEST(NigoriStateTest, ShouldClonePublicKey) { … }
TEST(
NigoriStateTest,
ShouldSetCrossUserPublicKeyVersionInCreateFromLocalProtoAndBeAbleToEncrypt) { … }
TEST(NigoriStateTest,
ShouldReturnEmptyOnEncryptIfCrossUserPublicKeyVersionIsNotSet) { … }
TEST(NigoriStateTest, ShouldReturnNeedsGenerateCrossUserSharingKeyPair) { … }
TEST(NigoriStateTest,
ShouldReturnNeedsGenerateCrossUserSharingKeyPairWhenInvalid) { … }
}
}