| Index: sync/test/engine/simple_cryptographer_provider.cc
|
| diff --git a/sync/test/engine/simple_cryptographer_provider.cc b/sync/test/engine/simple_cryptographer_provider.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8659846238970565534eb5d6f1cf60381434431d
|
| --- /dev/null
|
| +++ b/sync/test/engine/simple_cryptographer_provider.cc
|
| @@ -0,0 +1,35 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "sync/test/engine/simple_cryptographer_provider.h"
|
| +
|
| +namespace syncer {
|
| +
|
| +SimpleCryptographerProvider::SimpleCryptographerProvider(
|
| + Cryptographer* cryptographer)
|
| + : cryptographer_(cryptographer) {
|
| +}
|
| +
|
| +SimpleCryptographerProvider::~SimpleCryptographerProvider() {
|
| +}
|
| +
|
| +bool SimpleCryptographerProvider::InitScopedCryptographer(
|
| + ScopedCryptographer* scoped) {
|
| + scoped->Initialize(new SimpleScopedCryptographerImpl(cryptographer_));
|
| + return scoped->IsValid();
|
| +}
|
| +
|
| +SimpleScopedCryptographerImpl::SimpleScopedCryptographerImpl(
|
| + Cryptographer* cryptographer)
|
| + : cryptographer_(cryptographer) {
|
| +}
|
| +
|
| +SimpleScopedCryptographerImpl::~SimpleScopedCryptographerImpl() {
|
| +}
|
| +
|
| +Cryptographer* SimpleScopedCryptographerImpl::Get() const {
|
| + return cryptographer_;
|
| +}
|
| +
|
| +} // namespace syncer
|
|
|