From 71c1bdadc65dab0590aaf44e740f6e3cdc87195e Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Mon, 6 May 2019 12:12:53 +0000 Subject: Deinline test code. --- .../src/tests/proton/attribute/attribute_manager/CMakeLists.txt | 1 + .../proton/attribute/attributes_state_explorer/CMakeLists.txt | 1 + .../attributes_state_explorer/attributes_state_explorer_test.cpp | 1 + searchcore/src/vespa/searchcore/proton/test/CMakeLists.txt | 1 + .../src/vespa/searchcore/proton/test/attribute_vectors.cpp | 9 +++------ searchcore/src/vespa/searchcore/proton/test/attribute_vectors.h | 8 ++------ 6 files changed, 9 insertions(+), 12 deletions(-) diff --git a/searchcore/src/tests/proton/attribute/attribute_manager/CMakeLists.txt b/searchcore/src/tests/proton/attribute/attribute_manager/CMakeLists.txt index 49de56a8ecc..75ab705daac 100644 --- a/searchcore/src/tests/proton/attribute/attribute_manager/CMakeLists.txt +++ b/searchcore/src/tests/proton/attribute/attribute_manager/CMakeLists.txt @@ -10,5 +10,6 @@ vespa_add_executable(searchcore_attribute_manager_test_app TEST searchcore_initializer searchcore_flushengine searchcore_pcommon + searchcore_test ) vespa_add_test(NAME searchcore_attribute_manager_test_app COMMAND searchcore_attribute_manager_test_app) diff --git a/searchcore/src/tests/proton/attribute/attributes_state_explorer/CMakeLists.txt b/searchcore/src/tests/proton/attribute/attributes_state_explorer/CMakeLists.txt index 62a59bc04c2..8b53b4e093f 100644 --- a/searchcore/src/tests/proton/attribute/attributes_state_explorer/CMakeLists.txt +++ b/searchcore/src/tests/proton/attribute/attributes_state_explorer/CMakeLists.txt @@ -5,5 +5,6 @@ vespa_add_executable(searchcore_attributes_state_explorer_test_app TEST DEPENDS searchcore_attribute searchcore_pcommon + searchcore_test ) vespa_add_test(NAME searchcore_attributes_state_explorer_test_app COMMAND searchcore_attributes_state_explorer_test_app) diff --git a/searchcore/src/tests/proton/attribute/attributes_state_explorer/attributes_state_explorer_test.cpp b/searchcore/src/tests/proton/attribute/attributes_state_explorer/attributes_state_explorer_test.cpp index 99cc777196b..da5a8b31671 100644 --- a/searchcore/src/tests/proton/attribute/attributes_state_explorer/attributes_state_explorer_test.cpp +++ b/searchcore/src/tests/proton/attribute/attributes_state_explorer/attributes_state_explorer_test.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include diff --git a/searchcore/src/vespa/searchcore/proton/test/CMakeLists.txt b/searchcore/src/vespa/searchcore/proton/test/CMakeLists.txt index 77a0ca98e0d..ad5ae54f6e1 100644 --- a/searchcore/src/vespa/searchcore/proton/test/CMakeLists.txt +++ b/searchcore/src/vespa/searchcore/proton/test/CMakeLists.txt @@ -1,6 +1,7 @@ # Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. vespa_add_library(searchcore_test STATIC SOURCES + attribute_vectors.cpp bucketfactory.cpp buckethandler.cpp clusterstatehandler.cpp diff --git a/searchcore/src/vespa/searchcore/proton/test/attribute_vectors.cpp b/searchcore/src/vespa/searchcore/proton/test/attribute_vectors.cpp index 280ef358d26..f2b974a34ef 100644 --- a/searchcore/src/vespa/searchcore/proton/test/attribute_vectors.cpp +++ b/searchcore/src/vespa/searchcore/proton/test/attribute_vectors.cpp @@ -1,15 +1,12 @@ -// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#pragma once +// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +#include "attribute_vectors.h" #include "attribute_utils.h" -#include #include namespace proton::test { -using Int32Attribute = search::SingleValueNumericAttribute >; - -inline std::unique_ptr +std::unique_ptr createInt32Attribute(const vespalib::string &name) { return std::make_unique(name, AttributeUtils::getInt32Config()); } diff --git a/searchcore/src/vespa/searchcore/proton/test/attribute_vectors.h b/searchcore/src/vespa/searchcore/proton/test/attribute_vectors.h index 280ef358d26..f56cfd84ff4 100644 --- a/searchcore/src/vespa/searchcore/proton/test/attribute_vectors.h +++ b/searchcore/src/vespa/searchcore/proton/test/attribute_vectors.h @@ -1,17 +1,13 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once -#include "attribute_utils.h" #include -#include +#include namespace proton::test { using Int32Attribute = search::SingleValueNumericAttribute >; -inline std::unique_ptr -createInt32Attribute(const vespalib::string &name) { - return std::make_unique(name, AttributeUtils::getInt32Config()); -} +std::unique_ptr createInt32Attribute(const vespalib::string &name); } -- cgit v1.2.3