Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
14693407
Commit
14693407
authored
Oct 11, 2011
by
chenzhengzhang
Browse files
[trac1140] fix copyright and style
parent
5d1dc735
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dns/tests/rdata_txt_like_unittest.cc
View file @
14693407
// Copyright (C) 201
0
Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 201
1
Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
...
...
@@ -86,11 +86,11 @@ TYPED_TEST(Rdata_TXT_LIKE_Test, createFromText) {
EXPECT_PRED_FORMAT4
(
UnitTestUtil
::
matchWireData
,
this
->
obuffer
.
getData
(),
this
->
obuffer
.
getLength
(),
wiredata_nulltxt
,
sizeof
(
wiredata_nulltxt
));
wiredata_nulltxt
,
sizeof
(
wiredata_nulltxt
));
// Longest possible character-string.
this
->
obuffer
.
clear
();
TypeParam
(
string
(
255
,
'a'
)).
toWire
(
this
->
obuffer
);
TypeParam
(
string
(
255
,
'a'
)).
toWire
(
this
->
obuffer
);
EXPECT_PRED_FORMAT4
(
UnitTestUtil
::
matchWireData
,
this
->
obuffer
.
getData
(),
this
->
obuffer
.
getLength
(),
...
...
@@ -224,11 +224,11 @@ TYPED_TEST(Rdata_TXT_LIKE_Test, assignment) {
}
TYPED_TEST
(
Rdata_TXT_LIKE_Test
,
compare
)
{
string
const
txt1
(
"aaaaaaaa"
);
string
const
txt2
(
"aaaaaaaaaa"
);
string
const
txt3
(
"bbbbbbbb"
);
string
const
txt4
(
129
,
'a'
);
string
const
txt5
(
128
,
'b'
);
string
const
txt1
(
"aaaaaaaa"
);
string
const
txt2
(
"aaaaaaaaaa"
);
string
const
txt3
(
"bbbbbbbb"
);
string
const
txt4
(
129
,
'a'
);
string
const
txt5
(
128
,
'b'
);
EXPECT_EQ
(
TypeParam
(
txt1
).
compare
(
TypeParam
(
txt1
)),
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment