Skip to content

Commit 27ffad9

Browse files
committed
test(windows): pass the init result callback in the query latency stub
The stub DLL must export the same init signature as the plugin; it reports success right away.
1 parent 506a01b commit 27ffad9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎flutter_local_notifications_windows/test/native/query_latency_stub.cpp‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ NativePlugin* createPlugin() {
1919
return new NativePlugin();
2020
}
2121
bool init(
22-
NativePlugin* plugin, char*, char*, char*, char*, NativeNotificationCallback callback
22+
NativePlugin* plugin, char*, char*, char*, char*, NativeNotificationCallback callback,
23+
NativeInitCallback onReady
2324
) {
2425
plugin->callback = callback;
26+
onReady(true);
2527
return true;
2628
}
2729
void disposePlugin(NativePlugin* plugin) {

0 commit comments

Comments
 (0)