From: Jens Steinhauser Date: Mon, 9 Jun 2014 15:35:36 +0000 (+0200) Subject: Use 'struct' for test cases defined with BOOST_AUTO_TEST_CASE. X-Git-Tag: pulseview-0.3.0~585 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9e587572b631aa81b1626ff55a21e660742ea2c0;p=pulseview.git Use 'struct' for test cases defined with BOOST_AUTO_TEST_CASE. --- diff --git a/pv/data/analogsnapshot.h b/pv/data/analogsnapshot.h index b60c2ce7..9f0711f2 100644 --- a/pv/data/analogsnapshot.h +++ b/pv/data/analogsnapshot.h @@ -27,7 +27,7 @@ #include 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 diff --git a/pv/data/decoderstack.h b/pv/data/decoderstack.h index ab700ae0..16a7c0cf 100644 --- a/pv/data/decoderstack.h +++ b/pv/data/decoderstack.h @@ -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 _interrupt; - friend class DecoderStackTest::TwoDecoderStack; + friend struct DecoderStackTest::TwoDecoderStack; }; } // namespace data diff --git a/pv/data/logicsnapshot.h b/pv/data/logicsnapshot.h index 0f6f410c..bcb644da 100644 --- a/pv/data/logicsnapshot.h +++ b/pv/data/logicsnapshot.h @@ -27,11 +27,11 @@ #include 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