You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2022/03/10 00:03:46 UTC

[trafficserver] branch 9.2.x updated: Update iocore/cache/test to fix the build (#8677)

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.2.x by this push:
     new 2eb3e86  Update iocore/cache/test to fix the build (#8677)
2eb3e86 is described below

commit 2eb3e861e9a1ab60961ab3c2a392bdb10e708bf9
Author: Chris McFarlen <ch...@mcfarlen.us>
AuthorDate: Mon Feb 28 18:27:57 2022 -0600

    Update iocore/cache/test to fix the build (#8677)
    
    (cherry picked from commit baddc6ac815bbd54d0f6388351ec1b03afca3158)
---
 iocore/cache/Makefile.am  |  1 +
 iocore/cache/test/stub.cc | 18 +++++++++++++++---
 2 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/iocore/cache/Makefile.am b/iocore/cache/Makefile.am
index 307f05b..9363ccb 100644
--- a/iocore/cache/Makefile.am
+++ b/iocore/cache/Makefile.am
@@ -105,6 +105,7 @@ test_LDADD = \
 	$(top_builddir)/iocore/aio/libinkaio.a \
 	$(top_builddir)/src/tscore/libtscore.la \
 	$(top_builddir)/lib/records/librecords_p.a \
+	$(top_builddir)/lib/fastlz/libfastlz.a \
 	$(top_builddir)/iocore/eventsystem/libinkevent.a \
 	@HWLOC_LIBS@ \
 	@LIBPCRE@ \
diff --git a/iocore/cache/test/stub.cc b/iocore/cache/test/stub.cc
index dcc232c..b247da1 100644
--- a/iocore/cache/test/stub.cc
+++ b/iocore/cache/test/stub.cc
@@ -21,11 +21,17 @@
   limitations under the License.
  */
 
+#include <string_view>
+
 #include "HttpSessionManager.h"
 #include "HttpBodyFactory.h"
 #include "DiagsConfig.h"
 #include "ts/InkAPIPrivateIOCore.h"
 
+#include "tscore/I_Version.h"
+
+AppVersionInfo appVersionInfo;
+
 void
 initialize_thread_for_http_sessions(EThread *, int)
 {
@@ -70,6 +76,11 @@ HttpHookState::init(TSHttpHookID id, HttpAPIHooks const *global, HttpAPIHooks co
 {
 }
 
+void
+api_init()
+{
+}
+
 APIHook const *
 HttpHookState::getNext()
 {
@@ -157,18 +168,19 @@ ts::svtoi(TextView src, TextView *out, int base)
 }
 
 void
-HostStatus::setHostStatus(const char *name, TSHostStatus status, const unsigned int down_time, const unsigned int reason)
+HostStatus::setHostStatus(const std::string_view name, const TSHostStatus status, const unsigned int down_time,
+                          const unsigned int reason)
 {
 }
 
 HostStatRec *
-HostStatus::getHostStatus(const char *name)
+HostStatus::getHostStatus(const std::string_view name)
 {
   return nullptr;
 }
 
 void
-HostStatus::createHostStat(const char *name, const char *data)
+HostStatus::createHostStat(const std::string_view name, const char *data)
 {
 }