Add new unit test for opaque serialization.

One Bro begins a computation, another finishes it.

(This commit also fixes a problem with the serialization OpaqueVals.)
This commit is contained in:
Matthias Vallentin 2012-12-14 13:03:15 -08:00
parent b9d05f56d0
commit 69d8d29fbd
6 changed files with 99 additions and 20 deletions

View file

@ -1019,16 +1019,11 @@ public:
OpaqueVal(OpaqueType* t);
virtual ~OpaqueVal();
// Determines whether the opaque value is in a valid state.
virtual bool IsValid() const;
protected:
friend class Val;
OpaqueVal() { }
DECLARE_SERIAL(OpaqueVal);
OpaqueType* opaque_type;
};