sapling/eden/fs/store/test/RocksDbLocalStoreTest.cpp
Chad Austin ca7bc2f0f7 split rocksdb store tests into a separate target
Summary:
Build the store tests on mode/mac. RocksDB doesn't build yet (and we
will likely move away from it anyway) so split it into its own target.

Reviewed By: simpkins

Differential Revision: D15002840

fbshipit-source-id: fa0fea1d52df06526032a6fd585e2da7273910ef
2019-04-18 19:36:19 -07:00

30 lines
853 B
C++

/*
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include "eden/fs/store/RocksDbLocalStore.h"
#include "eden/fs/store/test/LocalStoreTest.h"
namespace {
using namespace facebook::eden;
LocalStoreImplResult makeRocksDbLocalStore(FaultInjector* faultInjector) {
auto tempDir = makeTempDir();
auto store = std::make_unique<RocksDbLocalStore>(
AbsolutePathPiece{tempDir.path().string()}, faultInjector);
return {std::move(tempDir), std::move(store)};
}
INSTANTIATE_TEST_CASE_P(
RocksDB,
LocalStoreTest,
::testing::Values(makeRocksDbLocalStore));
} // namespace