1 /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
3 * Copyright 2013 Couchbase, Inc.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 #include "evp_store_test.h"
20 #include "fakes/fake_executorpool.h"
21 #include "taskqueue.h"
24 * A subclass of EventuallyPersistentStoreTest which uses a fake ExecutorPool,
25 * which will not spawn ExecutorThreads and hence not run any tasks
26 * automatically in the background. All tasks must be manually run().
28 class SingleThreadedEPStoreTest : public EventuallyPersistentStoreTest {
30 SingleThreadedExecutorPool::replaceExecutorPoolWithFake();
31 EventuallyPersistentStoreTest::SetUp();