+#if wxUSE_LONGLONG
+void DataStreamTestCase::LongLongRW()
+{
+ TestMultiRW<wxLongLong>::ValueArray ValuesLL;
+ TestMultiRW<wxULongLong>::ValueArray ValuesULL;
+
+ ValuesLL.push_back(wxLongLong(0l));
+ ValuesLL.push_back(wxLongLong(1l));
+ ValuesLL.push_back(wxLongLong(-1l));
+ ValuesLL.push_back(wxLongLong(0x12345678l));
+ ValuesLL.push_back(wxLongLong(0x12345678l, 0xabcdef01l));
+
+ ValuesULL.push_back(wxULongLong(0l));
+ ValuesULL.push_back(wxULongLong(1l));
+ ValuesULL.push_back(wxULongLong(0x12345678l));
+ ValuesULL.push_back(wxULongLong(0x12345678l, 0xabcdef01l));
+
+ CPPUNIT_ASSERT( TestRW(wxLongLong(0x12345678l)) == wxLongLong(0x12345678l) );
+ CPPUNIT_ASSERT( TestRW(wxLongLong(0x12345678l, 0xabcdef01l)) == wxLongLong(0x12345678l, 0xabcdef01l) );
+ CPPUNIT_ASSERT( TestMultiRW<wxLongLong>(ValuesLL, &wxDataOutputStream::WriteLL, &wxDataInputStream::ReadLL).Ok() );
+ CPPUNIT_ASSERT( TestMultiRW<wxULongLong>(ValuesULL, &wxDataOutputStream::WriteLL, &wxDataInputStream::ReadLL).Ok() );
+}
+#endif
+
+#if wxHAS_INT64
+void DataStreamTestCase::Int64RW()
+{
+ TestMultiRW<wxInt64>::ValueArray ValuesI64;
+ TestMultiRW<wxUint64>::ValueArray ValuesUI64;
+
+ ValuesI64.push_back(wxInt64(0l));
+ ValuesI64.push_back(wxInt64(1l));
+ ValuesI64.push_back(wxInt64(-1l));
+ ValuesI64.push_back(wxInt64(0x12345678l));
+ ValuesI64.push_back((wxInt64(0x12345678l) << 32) + wxInt64(0xabcdef01l));
+
+ ValuesUI64.push_back(wxUint64(0l));
+ ValuesUI64.push_back(wxUint64(1l));
+ ValuesUI64.push_back(wxUint64(0x12345678l));
+ ValuesUI64.push_back((wxUint64(0x12345678l) << 32) + wxUint64(0xabcdef01l));
+
+ CPPUNIT_ASSERT( TestRW(wxUint64(0x12345678l)) == wxUint64(0x12345678l) );
+ CPPUNIT_ASSERT( TestRW((wxUint64(0x12345678l) << 32) + wxUint64(0xabcdef01l)) == (wxUint64(0x12345678l) << 32) + wxUint64(0xabcdef01l) );
+ CPPUNIT_ASSERT( TestMultiRW<wxInt64>(ValuesI64, &wxDataOutputStream::Write64, &wxDataInputStream::Read64).Ok() );
+ CPPUNIT_ASSERT( TestMultiRW<wxUint64>(ValuesUI64, &wxDataOutputStream::Write64, &wxDataInputStream::Read64).Ok() );
+}
+#endif
+