blob: 699a3a336a7fe19aa030ffae20d5e043cd5ad180 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vdstestlib/cppunit/macros.h>
#include <vespa/persistence/conformancetest/conformancetest.h>
#include <vespa/persistence/dummyimpl/dummypersistence.h>
namespace storage {
namespace spi {
struct DummyImplTest : public ConformanceTest {
struct Factory : public PersistenceFactory {
using Repo = document::DocumentTypeRepo;
PersistenceProvider::UP
getPersistenceImplementation(const Repo::SP& repo, const Repo::DocumenttypesConfig&) override {
return PersistenceProvider::UP(new dummy::DummyPersistence(repo, 4));
}
bool supportsActiveState() const override { return true; }
};
DummyImplTest()
: ConformanceTest(PersistenceFactory::UP(new Factory)) {}
CPPUNIT_TEST_SUITE(DummyImplTest);
DEFINE_CONFORMANCE_TESTS();
CPPUNIT_TEST_SUITE_END();
};
CPPUNIT_TEST_SUITE_REGISTRATION(DummyImplTest);
} // spi
} // storage
|