diff options
author | Alexey Orlenko <eaglexrlnk@gmail.com> | 2017-04-05 17:05:55 +0300 |
---|---|---|
committer | Alexey Orlenko <eaglexrlnk@gmail.com> | 2017-04-08 11:57:40 +0300 |
commit | b03f1f0c01b2efbc57766998371d41f04700a6ba (patch) | |
tree | e01fd23919d7d4ce7273a4b92f4a2f231308f84e /node.gyp | |
parent | 8fbace163afbd61b5efc57cf94414be904bf0188 (diff) |
test: add basic cctest for base64.h
This commit adds C++ tests for `base64_encode()` and `base64_decode()`
functions defined in `base64.h`. The functionality is already being
tested indirectly in JavaScript tests for Buffer, but it won't hurt to
test the low-level functions too, especially given that they aren't only
used in the internal Buffer implementation, Chrome inspector protocol
support relies upon them too.
PR-URL: https://github.com/nodejs/node/pull/12238
Refs: https://github.com/nodejs/node/pull/12146#issuecomment-291559685
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -641,6 +641,7 @@ ], 'sources': [ + 'test/cctest/test_base64.cc', 'test/cctest/test_util.cc', 'test/cctest/test_url.cc' ], |