]> sigrok.org Git - pulseview.git/commitdiff
Use 'struct' for test cases defined with BOOST_AUTO_TEST_CASE.
authorJens Steinhauser <redacted>
Mon, 9 Jun 2014 15:35:36 +0000 (17:35 +0200)
committerBert Vermeulen <redacted>
Wed, 11 Jun 2014 13:48:56 +0000 (15:48 +0200)
pv/data/analogsnapshot.h
pv/data/decoderstack.h
pv/data/logicsnapshot.h

index b60c2ce72580c4fdf51d84940f0e836216759bae..9f0711f2d3e20ae3dde93df9562a7c56c9e65e7f 100644 (file)
@@ -27,7 +27,7 @@
 #include <vector>
 
 namespace AnalogSnapshotTest {
-class Basic;
+struct Basic;
 }
 
 namespace pv {
@@ -87,7 +87,7 @@ private:
 private:
        struct Envelope _envelope_levels[ScaleStepCount];
 
-       friend class AnalogSnapshotTest::Basic;
+       friend struct AnalogSnapshotTest::Basic;
 };
 
 } // namespace data
index ab700ae0404bfd85129f761ed3886f413c03100b..16a7c0cf957961a3d52053b14689e9f4e5fb7438 100644 (file)
@@ -45,7 +45,7 @@ struct srd_proto_data;
 struct srd_session;
 
 namespace DecoderStackTest {
-class TwoDecoderStack;
+struct TwoDecoderStack;
 }
 
 namespace pv {
@@ -160,7 +160,7 @@ private:
        std::thread _decode_thread;
        std::atomic<bool> _interrupt;
 
-       friend class DecoderStackTest::TwoDecoderStack;
+       friend struct DecoderStackTest::TwoDecoderStack;
 };
 
 } // namespace data
index 0f6f410c962487dd8828bda493e86fe33670e050..bcb644da58da7073831883920f4294535eae8a2d 100644 (file)
 #include <vector>
 
 namespace LogicSnapshotTest {
-class Pow2;
-class Basic;
-class LargeData;
-class Pulses;
-class LongPulses;
+struct Pow2;
+struct Basic;
+struct LargeData;
+struct Pulses;
+struct LongPulses;
 }
 
 namespace pv {
@@ -102,11 +102,11 @@ private:
        struct MipMapLevel _mip_map[ScaleStepCount];
        uint64_t _last_append_sample;
 
-       friend class LogicSnapshotTest::Pow2;
-       friend class LogicSnapshotTest::Basic;
-       friend class LogicSnapshotTest::LargeData;
-       friend class LogicSnapshotTest::Pulses;
-       friend class LogicSnapshotTest::LongPulses;
+       friend struct LogicSnapshotTest::Pow2;
+       friend struct LogicSnapshotTest::Basic;
+       friend struct LogicSnapshotTest::LargeData;
+       friend struct LogicSnapshotTest::Pulses;
+       friend struct LogicSnapshotTest::LongPulses;
 };
 
 } // namespace data