diff options
author | Jon Moss <me@jonathanmoss.me> | 2018-07-27 22:41:58 -0400 |
---|---|---|
committer | Jon Moss <me@jonathanmoss.me> | 2018-08-01 15:07:14 -0400 |
commit | f479050916aa8fdb8bf580c6b103308dd012cdba (patch) | |
tree | 7fb90be56fc987e1f7299d6a0acced057c348e6d /test | |
parent | 172b4d7cebaa3ee047dd80ea908f06dd031c39f2 (diff) | |
download | android-node-v8-f479050916aa8fdb8bf580c6b103308dd012cdba.tar.gz android-node-v8-f479050916aa8fdb8bf580c6b103308dd012cdba.tar.bz2 android-node-v8-f479050916aa8fdb8bf580c6b103308dd012cdba.zip |
src: rename PROVIDER_FSREQWRAP to PROVIDER_FSREQCALLBACK
PR-URL: https://github.com/nodejs/node/pull/21971
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/async-hooks/coverage.md | 54 | ||||
-rw-r--r-- | test/async-hooks/test-fsreqcallback-access.js (renamed from test/async-hooks/test-fsreqwrap-access.js) | 8 | ||||
-rw-r--r-- | test/async-hooks/test-fsreqcallback-readFile.js (renamed from test/async-hooks/test-fsreqwrap-readFile.js) | 8 | ||||
-rw-r--r-- | test/async-hooks/test-graph.fsreq-readFile.js | 8 | ||||
-rw-r--r-- | test/cctest/test_node_postmortem_metadata.cc | 2 |
5 files changed, 40 insertions, 40 deletions
diff --git a/test/async-hooks/coverage.md b/test/async-hooks/coverage.md index 7352c4a840..4ac7bc24a5 100644 --- a/test/async-hooks/coverage.md +++ b/test/async-hooks/coverage.md @@ -2,30 +2,30 @@ Showing which kind of async resource is covered by which test: -| Resource Type | Test | -|----------------------|----------------------------------------| -| CONNECTION | test-connection.ssl.js | -| FSEVENTWRAP | test-fseventwrap.js | -| FSREQWRAP | test-fsreqwrap-{access,readFile}.js | -| GETADDRINFOREQWRAP | test-getaddrinforeqwrap.js | -| GETNAMEINFOREQWRAP | test-getnameinforeqwrap.js | -| HTTPPARSER | test-httpparser.{request,response}.js | -| Immediate | test-immediate.js | -| JSSTREAM | TODO (crashes when accessing directly) | -| PBKDF2REQUEST | test-crypto-pbkdf2.js | -| PIPECONNECTWRAP | test-pipeconnectwrap.js | -| PIPEWRAP | test-pipewrap.js | -| PROCESSWRAP | test-pipewrap.js | -| QUERYWRAP | test-querywrap.js | -| RANDOMBYTESREQUEST | test-crypto-randomBytes.js | -| SHUTDOWNWRAP | test-shutdownwrap.js | -| SIGNALWRAP | test-signalwrap.js | -| STATWATCHER | test-statwatcher.js | -| TCPCONNECTWRAP | test-tcpwrap.js | -| TCPWRAP | test-tcpwrap.js | -| TLSWRAP | test-tlswrap.js | -| TTYWRAP | test-ttywrap.{read,write}stream.js | -| UDPSENDWRAP | test-udpsendwrap.js | -| UDPWRAP | test-udpwrap.js | -| WRITEWRAP | test-writewrap.js | -| ZLIB | test-zlib.zlib-binding.deflate.js | +| Resource Type | Test | +|----------------------|--------------------------------------------| +| CONNECTION | test-connection.ssl.js | +| FSEVENTWRAP | test-fseventwrap.js | +| FSREQCALLBACK | test-fsreqcallback-{access,readFile}.js | +| GETADDRINFOREQWRAP | test-getaddrinforeqwrap.js | +| GETNAMEINFOREQWRAP | test-getnameinforeqwrap.js | +| HTTPPARSER | test-httpparser.{request,response}.js | +| Immediate | test-immediate.js | +| JSSTREAM | TODO (crashes when accessing directly) | +| PBKDF2REQUEST | test-crypto-pbkdf2.js | +| PIPECONNECTWRAP | test-pipeconnectwrap.js | +| PIPEWRAP | test-pipewrap.js | +| PROCESSWRAP | test-pipewrap.js | +| QUERYWRAP | test-querywrap.js | +| RANDOMBYTESREQUEST | test-crypto-randomBytes.js | +| SHUTDOWNWRAP | test-shutdownwrap.js | +| SIGNALWRAP | test-signalwrap.js | +| STATWATCHER | test-statwatcher.js | +| TCPCONNECTWRAP | test-tcpwrap.js | +| TCPWRAP | test-tcpwrap.js | +| TLSWRAP | test-tlswrap.js | +| TTYWRAP | test-ttywrap.{read,write}stream.js | +| UDPSENDWRAP | test-udpsendwrap.js | +| UDPWRAP | test-udpwrap.js | +| WRITEWRAP | test-writewrap.js | +| ZLIB | test-zlib.zlib-binding.deflate.js | diff --git a/test/async-hooks/test-fsreqwrap-access.js b/test/async-hooks/test-fsreqcallback-access.js index 2b31f2512d..8983a3dcdf 100644 --- a/test/async-hooks/test-fsreqwrap-access.js +++ b/test/async-hooks/test-fsreqcallback-access.js @@ -13,7 +13,7 @@ hooks.enable(); fs.access(__filename, common.mustCall(onaccess)); function onaccess() { - const as = hooks.activitiesOfTypes('FSREQWRAP'); + const as = hooks.activitiesOfTypes('FSREQCALLBACK'); const a = as[0]; checkInvocations(a, { init: 1, before: 1 }, 'while in onaccess callback'); @@ -24,13 +24,13 @@ process.on('exit', onexit); function onexit() { hooks.disable(); - hooks.sanityCheck('FSREQWRAP'); + hooks.sanityCheck('FSREQCALLBACK'); - const as = hooks.activitiesOfTypes('FSREQWRAP'); + const as = hooks.activitiesOfTypes('FSREQCALLBACK'); assert.strictEqual(as.length, 1); const a = as[0]; - assert.strictEqual(a.type, 'FSREQWRAP'); + assert.strictEqual(a.type, 'FSREQCALLBACK'); assert.strictEqual(typeof a.uid, 'number'); checkInvocations(a, { init: 1, before: 1, after: 1, destroy: 1 }, 'when process exits'); diff --git a/test/async-hooks/test-fsreqwrap-readFile.js b/test/async-hooks/test-fsreqcallback-readFile.js index 064cd80a48..8301835ec8 100644 --- a/test/async-hooks/test-fsreqwrap-readFile.js +++ b/test/async-hooks/test-fsreqcallback-readFile.js @@ -16,11 +16,11 @@ hooks.enable(); fs.readFile(__filename, common.mustCall(onread)); function onread() { - const as = hooks.activitiesOfTypes('FSREQWRAP'); + const as = hooks.activitiesOfTypes('FSREQCALLBACK'); let lastParent = 1; for (let i = 0; i < as.length; i++) { const a = as[i]; - assert.strictEqual(a.type, 'FSREQWRAP'); + assert.strictEqual(a.type, 'FSREQCALLBACK'); assert.strictEqual(typeof a.uid, 'number'); assert.strictEqual(a.triggerAsyncId, lastParent); lastParent = a.uid; @@ -43,8 +43,8 @@ process.on('exit', onexit); function onexit() { hooks.disable(); - hooks.sanityCheck('FSREQWRAP'); - const as = hooks.activitiesOfTypes('FSREQWRAP'); + hooks.sanityCheck('FSREQCALLBACK'); + const as = hooks.activitiesOfTypes('FSREQCALLBACK'); const a = as.pop(); checkInvocations(a, { init: 1, before: 1, after: 1, destroy: 1 }, 'when process exits'); diff --git a/test/async-hooks/test-graph.fsreq-readFile.js b/test/async-hooks/test-graph.fsreq-readFile.js index f9c476ca0b..0a310ed577 100644 --- a/test/async-hooks/test-graph.fsreq-readFile.js +++ b/test/async-hooks/test-graph.fsreq-readFile.js @@ -18,9 +18,9 @@ function onexit() { hooks.disable(); verifyGraph( hooks, - [ { type: 'FSREQWRAP', id: 'fsreq:1', triggerAsyncId: null }, - { type: 'FSREQWRAP', id: 'fsreq:2', triggerAsyncId: 'fsreq:1' }, - { type: 'FSREQWRAP', id: 'fsreq:3', triggerAsyncId: 'fsreq:2' }, - { type: 'FSREQWRAP', id: 'fsreq:4', triggerAsyncId: 'fsreq:3' } ] + [ { type: 'FSREQCALLBACK', id: 'fsreq:1', triggerAsyncId: null }, + { type: 'FSREQCALLBACK', id: 'fsreq:2', triggerAsyncId: 'fsreq:1' }, + { type: 'FSREQCALLBACK', id: 'fsreq:3', triggerAsyncId: 'fsreq:2' }, + { type: 'FSREQCALLBACK', id: 'fsreq:4', triggerAsyncId: 'fsreq:3' } ] ); } diff --git a/test/cctest/test_node_postmortem_metadata.cc b/test/cctest/test_node_postmortem_metadata.cc index e9acd629f3..8e8cbabf00 100644 --- a/test/cctest/test_node_postmortem_metadata.cc +++ b/test/cctest/test_node_postmortem_metadata.cc @@ -57,7 +57,7 @@ class TestReqWrap : public node::ReqWrap<uv_req_t> { TestReqWrap(node::Environment* env, v8::Local<v8::Object> object) : node::ReqWrap<uv_req_t>(env, object, - node::AsyncWrap::PROVIDER_FSREQWRAP) {} + node::AsyncWrap::PROVIDER_FSREQCALLBACK) {} }; TEST_F(DebugSymbolsTest, ContextEmbedderEnvironmentIndex) { |