diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-01-13 00:02:55 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-01-13 00:02:55 +0100 |
commit | bdfd0e49219fc4603a4946ad99b6336864998e71 (patch) | |
tree | f286813759903dd72b8788ae78f1bd19eedf8b1a /fnet/src/tests/frt/rpc/sharedblob.cpp | |
parent | 60db71c43a6ee5cc56aeb9cd88602e2f60e0c93c (diff) |
replace memorytub with Stash.
Diffstat (limited to 'fnet/src/tests/frt/rpc/sharedblob.cpp')
-rw-r--r-- | fnet/src/tests/frt/rpc/sharedblob.cpp | 7 |
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; |