summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-09-25 09:58:55 +0200
committerPierre Ossman <ossman@cendio.se>2014-09-25 15:03:39 +0200
commit41deb88359d96b782f8da7126c8060bd285686e6 (patch)
treefada4afdb8e1bbcb0f303068f15bb90f5913f006 /common
parenta4148f867fac7c70fc7d2a02cb0f9b20ce5d9394 (diff)
downloadtigervnc-41deb88359d96b782f8da7126c8060bd285686e6.tar.gz
tigervnc-41deb88359d96b782f8da7126c8060bd285686e6.zip
Add pixel conversion correctness test
Diffstat (limited to 'common')
-rw-r--r--common/rfb/PixelFormat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/rfb/PixelFormat.h b/common/rfb/PixelFormat.h
index 8dfa5f1a..8d67f8a1 100644
--- a/common/rfb/PixelFormat.h
+++ b/common/rfb/PixelFormat.h
@@ -141,6 +141,12 @@ namespace rfb {
class Init;
friend class Init;
static Init _init;
+
+ /* Only for testing this class */
+ friend void makePixel(const rfb::PixelFormat &, rdr::U8 *);
+ friend bool verifyPixel(const rfb::PixelFormat &,
+ const rfb::PixelFormat &,
+ const rdr::U8 *);
};
}