Browse Source

n-api: use module name macro

Update tests to use module name macro

PR-URL: https://github.com/nodejs/node/pull/16185
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
v9.x-staging
Michael Dawson 7 years ago
committed by James M Snell
parent
commit
6bc82daef0
  1. 2
      test/addons-napi/test_warning/test_warning.c
  2. 2
      test/addons-napi/test_warning/test_warning2.c
  3. 2
      test/addons/callback-scope/binding.cc
  4. 2
      test/addons/dlopen-ping-pong/binding.cc
  5. 2
      test/addons/node-module-version/binding.cc
  6. 2
      test/addons/openssl-binding/binding.cc
  7. 2
      test/addons/zlib-binding/binding.cc
  8. 2
      test/gc/binding.cc

2
test/addons-napi/test_warning/test_warning.c

@ -8,4 +8,4 @@ napi_value Init(napi_env env, napi_value exports) {
return result;
}
NAPI_MODULE(test_warning, Init)
NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)

2
test/addons-napi/test_warning/test_warning2.c

@ -8,4 +8,4 @@ napi_value Init(napi_env env, napi_value exports) {
return result;
}
NAPI_MODULE(test_warning2, Init)
NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)

2
test/addons/callback-scope/binding.cc

@ -68,4 +68,4 @@ void Initialize(v8::Local<v8::Object> exports) {
} // namespace
NODE_MODULE(binding, Initialize)
NODE_MODULE(NODE_GYP_MODULE_NAME, Initialize)

2
test/addons/dlopen-ping-pong/binding.cc

@ -41,7 +41,7 @@ void init(Local<Object> exports) {
NODE_SET_METHOD(exports, "ping", Ping);
}
NODE_MODULE(binding, init)
NODE_MODULE(NODE_GYP_MODULE_NAME, init)
} // anonymous namespace

2
test/addons/node-module-version/binding.cc

@ -12,4 +12,4 @@ inline void Initialize(v8::Local<v8::Object> exports,
}
NODE_MODULE_CONTEXT_AWARE(binding, Initialize)
NODE_MODULE_CONTEXT_AWARE(NODE_GYP_MODULE_NAME, Initialize)

2
test/addons/openssl-binding/binding.cc

@ -29,4 +29,4 @@ inline void Initialize(v8::Local<v8::Object> exports,
} // anonymous namespace
NODE_MODULE_CONTEXT_AWARE(binding, Initialize)
NODE_MODULE_CONTEXT_AWARE(NODE_GYP_MODULE_NAME, Initialize)

2
test/addons/zlib-binding/binding.cc

@ -52,4 +52,4 @@ inline void Initialize(v8::Local<v8::Object> exports,
} // anonymous namespace
NODE_MODULE_CONTEXT_AWARE(binding, Initialize)
NODE_MODULE_CONTEXT_AWARE(NODE_GYP_MODULE_NAME, Initialize)

2
test/gc/binding.cc

@ -77,4 +77,4 @@ inline void Initialize(v8::Local<v8::Object> exports,
} // anonymous namespace
NODE_MODULE_CONTEXT_AWARE(binding, Initialize)
NODE_MODULE_CONTEXT_AWARE(NODE_GYP_MODULE_NAME, Initialize)

Loading…
Cancel
Save