diff options
| author | Alan Conway <aconway@apache.org> | 2007-03-15 19:22:02 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-03-15 19:22:02 +0000 |
| commit | 6bc8ab8e4b209b841969544fc735361335040906 (patch) | |
| tree | 90b8a4b3f0ec4fdf2c3a0ac02b27768b953a3be1 /cpp/tests/LazyLoadedContentTest.cpp | |
| parent | f92c42ffe7662d1d0e2863c6e143567b25ae2024 (diff) | |
| download | qpid-python-6bc8ab8e4b209b841969544fc735361335040906.tar.gz | |
Changed u_int<n>_t to uint<n>_t for posix compliance.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@518733 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/tests/LazyLoadedContentTest.cpp')
| -rw-r--r-- | cpp/tests/LazyLoadedContentTest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/tests/LazyLoadedContentTest.cpp b/cpp/tests/LazyLoadedContentTest.cpp index 365e4f6a11..b24cd5a84a 100644 --- a/cpp/tests/LazyLoadedContentTest.cpp +++ b/cpp/tests/LazyLoadedContentTest.cpp @@ -50,7 +50,7 @@ class LazyLoadedContentTest : public CppUnit::TestCase public: TestMessageStore(const string& _content) : content(_content) {} - void loadContent(Message* const, string& data, u_int64_t offset, u_int32_t length) + void loadContent(Message* const, string& data, uint64_t offset, uint32_t length) { if (offset + length <= content.size()) { data = content.substr(offset, length); @@ -67,7 +67,7 @@ public: void testFragmented() { string data = "abcdefghijklmnopqrstuvwxyz"; - u_int32_t framesize = 5; + uint32_t framesize = 5; string out[] = {"abcde", "fghij", "klmno", "pqrst", "uvwxy", "z"}; load(data, 6, out, framesize); } @@ -75,7 +75,7 @@ public: void testWhole() { string data = "abcdefghijklmnopqrstuvwxyz"; - u_int32_t framesize = 50; + uint32_t framesize = 50; string out[] = {data}; load(data, 1, out, framesize); } @@ -83,12 +83,12 @@ public: void testHalved() { string data = "abcdefghijklmnopqrstuvwxyz"; - u_int32_t framesize = 13; + uint32_t framesize = 13; string out[] = {"abcdefghijklm", "nopqrstuvwxyz"}; load(data, 2, out, framesize); } - void load(string& in, size_t outCount, string* out, u_int32_t framesize) + void load(string& in, size_t outCount, string* out, uint32_t framesize) { TestMessageStore store(in); LazyLoadedContent content(&store, 0, in.size()); |
