summaryrefslogtreecommitdiff
path: root/source4/torture/ndr
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-02-18 12:12:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:48:31 -0500
commit3e208b3f805473c2558739d90888a4cac1e08679 (patch)
treec0ae7fa2e0f6c04bc947cbf07b195a042f391a28 /source4/torture/ndr
parent2503fe22734f361159672a3bd9c213c1ad1055b4 (diff)
downloadsamba-3e208b3f805473c2558739d90888a4cac1e08679.tar.gz
samba-3e208b3f805473c2558739d90888a4cac1e08679.tar.bz2
samba-3e208b3f805473c2558739d90888a4cac1e08679.zip
r21425: Add ReplyClosePrinter.
(This used to be commit 745d0eae1a0f681f6a08a7cc259834ddbb5fa023)
Diffstat (limited to 'source4/torture/ndr')
-rw-r--r--source4/torture/ndr/spoolss.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source4/torture/ndr/spoolss.c b/source4/torture/ndr/spoolss.c
index 2888efd4a3..fe9878e4ca 100644
--- a/source4/torture/ndr/spoolss.c
+++ b/source4/torture/ndr/spoolss.c
@@ -240,6 +240,16 @@ static const uint8_t FCPN_out_data[] = {
0x00, 0x00, 0x00, 0x00
};
+static const uint8_t replycloseprinter_in_data[] = {
+ 0x00, 0x00, 0x00, 0x00, 0x60, 0xe4, 0xdf, 0x77, 0xb1, 0xbf, 0x43, 0x4f,
+ 0xbf, 0xb4, 0x58, 0x5c, 0x44, 0xc6, 0x3e, 0x09
+};
+
+static const uint8_t replycloseprinter_out_data[] = {
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
+};
+
struct torture_suite *ndr_spoolss_suite(TALLOC_CTX *ctx)
{
struct torture_suite *suite = torture_suite_create(ctx, "spoolss");
@@ -259,6 +269,9 @@ struct torture_suite *ndr_spoolss_suite(TALLOC_CTX *ctx)
torture_suite_add_ndr_pull_fn_test(suite, spoolss_ReplyOpenPrinter, replyopenprinter_req_data, NDR_IN, NULL );
torture_suite_add_ndr_pull_fn_test(suite, spoolss_ReplyOpenPrinter, replyopenprinter_resp_data, NDR_OUT, NULL );
+ torture_suite_add_ndr_pull_fn_test(suite, spoolss_ReplyClosePrinter, replycloseprinter_in_data, NDR_IN, NULL );
+ torture_suite_add_ndr_pull_fn_test(suite, spoolss_ReplyClosePrinter, replycloseprinter_out_data, NDR_OUT, NULL );
+
torture_suite_add_ndr_pull_fn_test(suite, spoolss_RemoteFindFirstPrinterChangeNotifyEx, RFFPCNEX_in_data, NDR_IN, NULL );
torture_suite_add_ndr_pull_fn_test(suite, spoolss_RemoteFindFirstPrinterChangeNotifyEx, RFFPCNEX_out_data, NDR_OUT, NULL );