summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-02-01 19:20:07 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-02-01 19:20:07 +0300
commit6e67bee0f4f96ad0a7d1a231dfdae8431714c66a (patch)
treec422698ab3b7828f7346ca18e1f5a1b8305ed769 /test
parent8942550b13515e54aff9d682bec3da45ade26e18 (diff)
downloadunit-6e67bee0f4f96ad0a7d1a231dfdae8431714c66a.tar.gz
unit-6e67bee0f4f96ad0a7d1a231dfdae8431714c66a.tar.bz2
nxt_str_t changes.
Diffstat (limited to 'test')
-rw-r--r--test/nxt_lvlhsh_unit_test.c14
-rw-r--r--test/nxt_term_parse_unit_test.c2
2 files changed, 8 insertions, 8 deletions
diff --git a/test/nxt_lvlhsh_unit_test.c b/test/nxt_lvlhsh_unit_test.c
index 115f3907..8431ca89 100644
--- a/test/nxt_lvlhsh_unit_test.c
+++ b/test/nxt_lvlhsh_unit_test.c
@@ -10,7 +10,7 @@
static nxt_int_t
nxt_lvlhsh_unit_test_key_test(nxt_lvlhsh_query_t *lhq, void *data)
{
- if (*(uintptr_t *) lhq->key.data == (uintptr_t) data) {
+ if (*(uintptr_t *) lhq->key.start == (uintptr_t) data) {
return NXT_OK;
}
@@ -58,8 +58,8 @@ nxt_lvlhsh_unit_test_add(nxt_lvlhsh_t *lh, const nxt_lvlhsh_proto_t *proto,
lhq.key_hash = key;
lhq.replace = 0;
- lhq.key.len = sizeof(uintptr_t);
- lhq.key.data = (u_char *) &key;
+ lhq.key.length = sizeof(uintptr_t);
+ lhq.key.start = (u_char *) &key;
lhq.value = (void *) key;
lhq.proto = proto;
lhq.pool = pool;
@@ -85,8 +85,8 @@ nxt_lvlhsh_unit_test_get(nxt_lvlhsh_t *lh, const nxt_lvlhsh_proto_t *proto,
nxt_lvlhsh_query_t lhq;
lhq.key_hash = key;
- lhq.key.len = sizeof(uintptr_t);
- lhq.key.data = (u_char *) &key;
+ lhq.key.length = sizeof(uintptr_t);
+ lhq.key.start = (u_char *) &key;
lhq.proto = proto;
if (nxt_lvlhsh_find(lh, &lhq) == NXT_OK) {
@@ -111,8 +111,8 @@ nxt_lvlhsh_unit_test_delete(nxt_lvlhsh_t *lh, const nxt_lvlhsh_proto_t *proto,
nxt_lvlhsh_query_t lhq;
lhq.key_hash = key;
- lhq.key.len = sizeof(uintptr_t);
- lhq.key.data = (u_char *) &key;
+ lhq.key.length = sizeof(uintptr_t);
+ lhq.key.start = (u_char *) &key;
lhq.proto = proto;
lhq.pool = pool;
diff --git a/test/nxt_term_parse_unit_test.c b/test/nxt_term_parse_unit_test.c
index 539d74b9..818d0e19 100644
--- a/test/nxt_term_parse_unit_test.c
+++ b/test/nxt_term_parse_unit_test.c
@@ -44,7 +44,7 @@ nxt_term_parse_unit_test(nxt_thread_t *thr)
for (i = 0; i < nxt_nitems(terms); i++) {
s = &terms[i].string;
- val = nxt_term_parse(s->data, s->len, terms[i].is_sec);
+ val = nxt_term_parse(s->start, s->length, terms[i].is_sec);
if (val != terms[i].value) {
nxt_log_alert(thr->log,