aboutsummaryrefslogtreecommitdiffstats
path: root/fnet/src/tests/frt/rpc/sharedblob.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-01-13 00:02:55 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2017-01-13 00:02:55 +0100
commitbdfd0e49219fc4603a4946ad99b6336864998e71 (patch)
treef286813759903dd72b8788ae78f1bd19eedf8b1a /fnet/src/tests/frt/rpc/sharedblob.cpp
parent60db71c43a6ee5cc56aeb9cd88602e2f60e0c93c (diff)
replace memorytub with Stash.
Diffstat (limited to 'fnet/src/tests/frt/rpc/sharedblob.cpp')
-rw-r--r--fnet/src/tests/frt/rpc/sharedblob.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/fnet/src/tests/frt/rpc/sharedblob.cpp b/fnet/src/tests/frt/rpc/sharedblob.cpp
index bb115f1c65f..a94a322d7cc 100644
--- a/fnet/src/tests/frt/rpc/sharedblob.cpp
+++ b/fnet/src/tests/frt/rpc/sharedblob.cpp
@@ -1,8 +1,11 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/fnet/frt/frt.h>
#include <vector>
+constexpr size_t ALLOC_LIMIT=1024;
+
struct MyBlob : FRT_ISharedBlob
{
int refcnt;
@@ -16,8 +19,8 @@ struct MyBlob : FRT_ISharedBlob
struct Data
{
enum {
- SMALL = (FRT_MemoryTub::ALLOC_LIMIT / 2),
- LARGE = (FRT_MemoryTub::ALLOC_LIMIT * 2)
+ SMALL = (ALLOC_LIMIT / 2),
+ LARGE = (ALLOC_LIMIT * 2)
};
char *buf;