| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/tests/src/test_amdodfancurve.cpp`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #include <catch2/catch_all.hpp> |
| 5 | #include <catch2/trompeloeil.hpp> |
| 6 | |
| 7 | #include "common/commandqueuestub.h"cxx . . $ `<file>/tests/src/common/commandqueuestub.h`/ |
| 8 | #include "common/vectorstringdatasourcestub.h"cxx . . $ `<file>/tests/src/common/vectorstringdatasourcestub.h`/ |
| 9 | #include "core/components/controls/amd/fan/overdrive/curve/odfancurve.h"cxx . . $ `<file>/src/core/components/controls/amd/fan/overdrive/curve/odfancurve.h`/ |
| 10 | |
| 11 | extern template struct trompeloeil::reportercxx . . $ trompeloeil/reporter#<trompeloeilcxx . . $ trompeloeil/::specializedcxx . . $ trompeloeil/specialized#>; |
| 12 | |
| 13 | namespace Testscxx . . $ Tests/::AMDcxx . . $ Tests/AMD/::OdFanCurvecxx . . $ Tests/AMD/OdFanCurve/ { |
| 14 | |
| 15 | class OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# : public ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve# |
| 16 | { |
| 17 | public: |
| 18 | // clang-format off |
| 19 | using ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::OdFanCurvecxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter#OdFanCurveTestAdapter(5b887115bc6ba15b).; |
| 20 | |
| 21 | using ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::exportControlcxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter#exportControl(40299682ab9c8676).; |
| 22 | using ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::importControlcxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter#importControl(4f796e3ecd5dcd94).; |
| 23 | using ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::cleanControlcxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter#cleanControl(151e9138769f295e).; |
| 24 | using ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::syncControlcxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter#syncControl(151e9138769f295e).; |
| 25 | |
| 26 | using ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::defaultCurvecxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter#defaultCurve(192ed0f52b05ada0).; |
| 27 | using ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::fanCurvecxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter#fanCurve(949772e73cd104e8).; |
| 28 | using ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::controlPointscxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter#controlPoints(2597c67d77065b21).; |
| 29 | using ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::tempRangecxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter#tempRange(96d5d22a2fdf7529).; |
| 30 | using ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::speedRangecxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter#speedRange(7a622c70bd5d17b6).; |
| 31 | using ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::isZeroCurvecxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter#isZeroCurve(874658b725ece702).; |
| 32 | using ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::setPointCoordinatesFromcxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter#setPointCoordinatesFrom(b9e7c7a26cffa299).; |
| 33 | using ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::controlPointCmdcxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter#controlPointCmd(8d5cd9346e94ef88).; |
| 34 | using ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::toCurvePointscxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter#toCurvePoints(93e94e6c26ff4886).; |
| 35 | using ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::stopcxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter#stop(b45ddcbc8423892c).; |
| 36 | using ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::stopTempcxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter#stopTemp(5d232a6f9de3beb7).; |
| 37 | using ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::stopTempRangecxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter#stopTempRange(96d5d22a2fdf7529).; |
| 38 | // clang-format on |
| 39 | }; |
| 40 | |
| 41 | class FanCurveImporterStubcxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub# : public ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::Importercxx . . $ AMD/OdFanCurve#Importer# |
| 42 | { |
| 43 | public: |
| 44 | FanCurveImporterStubcxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub#FanCurveImporterStub(fb61027248bea3d2).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::CurvePointcxx . . $ AMD/OdFanCurve#CurvePoint#> const &curve, |
| 45 | bool stop, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t# stopTemp) |
| 46 | : curve_cxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub#curve_.(curve) |
| 47 | , stop_cxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub#stop_.(stop) |
| 48 | , stopTemp_cxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub#stopTemp_.(stopTemp) |
| 49 | { |
| 50 | } |
| 51 | |
| 52 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Importablecxx . . $ Importable#::Importercxx . . $ Importable#Importer#>> |
| 53 | provideImportercxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub#provideImporter(c13a3bcac0db4745).(Itemcxx . . $ Item# const &) override |
| 54 | { |
| 55 | return *cxx . . $ std/optional#optional(e3f0d6382bd52f24).this; |
| 56 | } |
| 57 | |
| 58 | bool provideActivecxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub#provideActive(50ce9a9e25b4a850).() const override |
| 59 | { |
| 60 | return false; |
| 61 | } |
| 62 | |
| 63 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::CurvePointcxx . . $ AMD/OdFanCurve#CurvePoint#> const &provideFanCurvecxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub#provideFanCurve(ea3809ced4756fa3).() const override |
| 64 | { |
| 65 | return curve_cxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub#curve_.; |
| 66 | } |
| 67 | |
| 68 | bool provideFanStopcxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub#provideFanStop(50ce9a9e25b4a850).() const override |
| 69 | { |
| 70 | return stop_cxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub#stop_.; |
| 71 | } |
| 72 | |
| 73 | unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t# provideFanStopTempcxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub#provideFanStopTemp(ee6ac29f966d24a0).() const override |
| 74 | { |
| 75 | return stopTemp_cxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub#stopTemp_.; |
| 76 | } |
| 77 | |
| 78 | private: |
| 79 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::CurvePointcxx . . $ AMD/OdFanCurve#CurvePoint#> const curve_cxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub#curve_.; |
| 80 | bool stop_cxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub#stop_.; |
| 81 | unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t# stopTemp_cxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub#stopTemp_.; |
| 82 | }; |
| 83 | |
| 84 | class FanCurveExporterMockcxx . . $ Tests/AMD/OdFanCurve/FanCurveExporterMock# : public ::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::Exportercxx . . $ AMD/OdFanCurve#Exporter# |
| 85 | { |
| 86 | public: |
| 87 | MAKE_MOCK1cxx . . $ `<external>/1068432606165018960/mock.hpp:4223:9`!(takeFanCurve, |
| 88 | void(std::vector<::AMD::OdFanCurve::CurvePoint> const &), override); |
| 89 | MAKE_MOCK2cxx . . $ `<external>/1068432606165018960/mock.hpp:4224:9`!(takeFanCurveRange, |
| 90 | void(::AMD::OdFanCurve::TempRange, ::AMD::OdFanCurve::SpeedRange), |
| 91 | override); |
| 92 | MAKE_MOCK1cxx . . $ `<external>/1068432606165018960/mock.hpp:4223:9`!(takeFanStop, void(bool), override); |
| 93 | MAKE_MOCK1cxx . . $ `<external>/1068432606165018960/mock.hpp:4223:9`!(takeFanStopTemp, void(units::temperature::celsius_t), override); |
| 94 | MAKE_MOCK1cxx . . $ `<external>/1068432606165018960/mock.hpp:4223:9`!(takeFanStopTempRange, void(::AMD::OdFanCurve::TempRange), override); |
| 95 | MAKE_MOCK1cxx . . $ `<external>/1068432606165018960/mock.hpp:4223:9`!(takeActive, void(bool), override); |
| 96 | MAKE_MOCK1cxx . . $ `<external>/1068432606165018960/mock.hpp:4223:9`!( |
| 97 | provideExporter, |
| 98 | std::optional<std::reference_wrapper<Exportable::Exporter>>(Item const &), |
| 99 | override); |
| 100 | }; |
| 101 | |
| 102 | TEST_CASEcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:144:11`!("AMD OdFanCurve tests", "[GPU][AMD][Fan][Overdrive][OdFanCurve]") |
| 103 | { |
| 104 | CommandQueueStubcxx . . $ CommandQueueStub# ctlCmds; |
| 105 | // clang-format off |
| 106 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> regularInputcxx . . $ std/vector#vector(9619226211e5a241).{ |
| 107 | "OD_FAN_CURVE:", |
| 108 | "0: 10C 10%", |
| 109 | "1: 45C 20%", |
| 110 | "2: 50C 50%", |
| 111 | "3: 75C 70%", |
| 112 | "4: 100C 100%", |
| 113 | "OD_RANGE:", |
| 114 | "FAN_CURVE(hotspot temp): 10C 100C", |
| 115 | "FAN_CURVE(fan speed): 10% 100%" |
| 116 | }; |
| 117 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> zeroCurveInputcxx . . $ std/vector#vector(9619226211e5a241).{ |
| 118 | "OD_FAN_CURVE:", |
| 119 | "0: 0C 0%", |
| 120 | "1: 0C 0%", |
| 121 | "2: 0C 0%", |
| 122 | "3: 0C 0%", |
| 123 | "4: 0C 0%", |
| 124 | "OD_RANGE:", |
| 125 | "FAN_CURVE(hotspot temp): 10C 100C", |
| 126 | "FAN_CURVE(fan speed): 10% 100%" |
| 127 | }; |
| 128 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> stopInputcxx . . $ std/vector#vector(9619226211e5a241).{ |
| 129 | "FAN_ZERO_RPM_ENABLE:", |
| 130 | "1", |
| 131 | "OD_RANGE:", |
| 132 | "ZERO_RPM_ENABLE: 0 1" |
| 133 | }; |
| 134 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> stopTempInputcxx . . $ std/vector#vector(9619226211e5a241).{ |
| 135 | "FAN_ZERO_RPM_STOP_TEMPERATURE:", |
| 136 | "20", |
| 137 | "OD_RANGE:", |
| 138 | "ZERO_RPM_STOP_TEMPERATURE: 10 100" |
| 139 | }; |
| 140 | // clang-format on |
| 141 | auto curveTempRange = stdcxx . . $ std/::make_paircxx . . $ std/make_pair(1d30b6e115203116).(unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(10), |
| 142 | unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(100)); |
| 143 | auto curveSpeedRange = stdcxx . . $ std/::make_paircxx . . $ std/make_pair(1d30b6e115203116).(unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(10), |
| 144 | unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(100)); |
| 145 | |
| 146 | auto stopDataSource = stdcxx . . $ std/::make_optionalcxx . . $ std/make_optional(e412eef0971c0904).<::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::StopDataSourcecxx . . $ AMD/OdFanCurve#StopDataSource#>( |
| 147 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_zero_rpm_enable", |
| 148 | stopInput), |
| 149 | stdcxx . . $ std/::make_optionalcxx . . $ std/make_optional(e412eef0971c0904).<::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::StopTemperatureDataSourcecxx . . $ AMD/OdFanCurve#StopTemperatureDataSource#>( |
| 150 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>( |
| 151 | "fan_zero_rpm_stop_temperature", stopTempInput), |
| 152 | stdcxx . . $ std/::make_paircxx . . $ std/make_pair(1d30b6e115203116).(unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(10), |
| 153 | unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(100))})}); |
| 154 | |
| 155 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("toCurvePoints") |
| 156 | { |
| 157 | // clang-format off |
| 158 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::tuplecxx . . $ std/tuple#<unsigned int, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#, |
| 159 | unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#>> |
| 160 | controlCurvecxx . . $ std/vector#vector(9619226211e5a241). { |
| 161 | {0, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(0), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(0)}, |
| 162 | {1, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(1), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(1)}, |
| 163 | {2, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(2), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(2)}, |
| 164 | {3, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(3), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(3)}, |
| 165 | {4, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(4), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(4)} |
| 166 | }; |
| 167 | |
| 168 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#, |
| 169 | unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#>> |
| 170 | curvePointscxx . . $ std/vector#vector(9619226211e5a241). { |
| 171 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(0), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(0)}, |
| 172 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(1), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(1)}, |
| 173 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(2), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(2)}, |
| 174 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(3), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(3)}, |
| 175 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(4), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(4)} |
| 176 | }; |
| 177 | // clang-format on |
| 178 | |
| 179 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts({stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>(), |
| 180 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), |
| 181 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}); |
| 182 | auto output = ts.toCurvePointscxx . . $ AMD/OdFanCurve#toCurvePoints(93e94e6c26ff4886).(controlCurve); |
| 183 | REQUIRE_THATcxx . . $ `<external>/3333208929440565380/catch_matchers.hpp:222:11`!(output, Catch::Matchers::Equals(curvePoints)); |
| 184 | } |
| 185 | |
| 186 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("setPointCoordinatesFrom") |
| 187 | { |
| 188 | // clang-format off |
| 189 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::tuplecxx . . $ std/tuple#<unsigned int, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#, |
| 190 | unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#>> |
| 191 | curvecxx . . $ std/vector#vector(9619226211e5a241). { |
| 192 | {0, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(0), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(0)}, |
| 193 | {1, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(0), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(0)}, |
| 194 | {2, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(0), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(0)}, |
| 195 | {3, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(0), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(0)}, |
| 196 | {4, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(0), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(0)} |
| 197 | }; |
| 198 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#, |
| 199 | unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#>> |
| 200 | valuescxx . . $ std/vector#vector(9619226211e5a241). { |
| 201 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(-10), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(-10)}, |
| 202 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(0), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(0)}, |
| 203 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(1), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(1)}, |
| 204 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(20), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(20)}, |
| 205 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(300), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(300)} |
| 206 | }; |
| 207 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::tuplecxx . . $ std/tuple#<unsigned int, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#, |
| 208 | unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#>> |
| 209 | targetCurvecxx . . $ std/vector#vector(9619226211e5a241). { |
| 210 | {0, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(-10), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(-10)}, |
| 211 | {1, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(0), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(0)}, |
| 212 | {2, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(1), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(1)}, |
| 213 | {3, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(20), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(20)}, |
| 214 | {4, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(300), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(300)} |
| 215 | }; |
| 216 | // clang-format on |
| 217 | |
| 218 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts({stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>(), |
| 219 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), |
| 220 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}); |
| 221 | ts.setPointCoordinatesFromcxx . . $ AMD/OdFanCurve#setPointCoordinatesFrom(b9e7c7a26cffa299).(curve, values); |
| 222 | REQUIRE_THATcxx . . $ `<external>/3333208929440565380/catch_matchers.hpp:222:11`!(curve, Catch::Matchers::Equals(targetCurve)); |
| 223 | } |
| 224 | |
| 225 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("isZeroCurve") |
| 226 | { |
| 227 | // clang-format off |
| 228 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::tuplecxx . . $ std/tuple#<unsigned int, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#, |
| 229 | unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#>> |
| 230 | zeroCurvecxx . . $ std/vector#vector(9619226211e5a241). { |
| 231 | {0, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(0), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(0)}, |
| 232 | {1, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(0), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(0)}, |
| 233 | {2, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(0), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(0)}, |
| 234 | {3, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(0), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(0)}, |
| 235 | {4, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(0), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(0)} |
| 236 | }; |
| 237 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::tuplecxx . . $ std/tuple#<unsigned int, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#, |
| 238 | unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#>> |
| 239 | nonZeroCurvecxx . . $ std/vector#vector(9619226211e5a241). { |
| 240 | {0, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(0), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(0)}, |
| 241 | {1, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(1), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(1)}, |
| 242 | {2, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(2), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(2)}, |
| 243 | {3, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(3), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(3)}, |
| 244 | {4, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(4), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(4)} |
| 245 | }; |
| 246 | // clang-format on |
| 247 | |
| 248 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts({stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>(), |
| 249 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), |
| 250 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}); |
| 251 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(ts.isZeroCurve(zeroCurve)); |
| 252 | REQUIRE_FALSEcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:128:11`!(ts.isZeroCurve(nonZeroCurve)); |
| 253 | } |
| 254 | |
| 255 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("controlPointCmd") |
| 256 | { |
| 257 | auto point = stdcxx . . $ std/::make_tuplecxx . . $ std/make_tuple(3964edbfd7e8599f).(0, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(-100), |
| 258 | unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(100)); |
| 259 | |
| 260 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts({stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>(), |
| 261 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), |
| 262 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}); |
| 263 | auto output = ts.controlPointCmdcxx . . $ AMD/OdFanCurve#controlPointCmd(8d5cd9346e94ef88).(pointcxx . . $ std/tuple#tuple(b8f8b3ae0dd5c377).); |
| 264 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(output == "0 -100 100"); |
| 265 | } |
| 266 | |
| 267 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Has OdFanCurve ID") |
| 268 | { |
| 269 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts({stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>(), |
| 270 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), |
| 271 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}); |
| 272 | |
| 273 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(ts.ID() == ::AMD::OdFanCurve::ItemID); |
| 274 | } |
| 275 | |
| 276 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Is not active by default") |
| 277 | { |
| 278 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts({stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>(), |
| 279 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), |
| 280 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}); |
| 281 | |
| 282 | REQUIRE_FALSEcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:128:11`!(ts.active()); |
| 283 | } |
| 284 | |
| 285 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Generate pre-init control commands...") |
| 286 | { |
| 287 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("for curve control only") |
| 288 | { |
| 289 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 290 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 291 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}); |
| 292 | ts.preInitcxx . . $ AMD/OdFanCurve#preInit(151e9138769f295e).(ctlCmds); |
| 293 | |
| 294 | auto const &cmds = ctlCmds.commandscxx . . $ CommandQueueStub#commands(f070559094366392).(); |
| 295 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds.size() == 2); |
| 296 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].first == "fan_curve"); |
| 297 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].second == "r"); |
| 298 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].first == "fan_curve"); |
| 299 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].second == "c"); |
| 300 | } |
| 301 | |
| 302 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("with stop and stop temp controls") |
| 303 | { |
| 304 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts({stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>( |
| 305 | "fan_curve", stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(regularInput)), |
| 306 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), |
| 307 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}, |
| 308 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(stopDataSource)); |
| 309 | ts.preInitcxx . . $ AMD/OdFanCurve#preInit(151e9138769f295e).(ctlCmds); |
| 310 | |
| 311 | auto const &cmds = ctlCmds.commandscxx . . $ CommandQueueStub#commands(f070559094366392).(); |
| 312 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds.size() == 6); |
| 313 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].first == "fan_curve"); |
| 314 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].second == "r"); |
| 315 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].first == "fan_curve"); |
| 316 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].second == "c"); |
| 317 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[2].first == "fan_zero_rpm_enable"); |
| 318 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[2].second == "r"); |
| 319 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[3].first == "fan_zero_rpm_enable"); |
| 320 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[3].second == "c"); |
| 321 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[4].first == "fan_zero_rpm_stop_temperature"); |
| 322 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[4].second == "r"); |
| 323 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[5].first == "fan_zero_rpm_stop_temperature"); |
| 324 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[5].second == "c"); |
| 325 | } |
| 326 | |
| 327 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("with only stop control") |
| 328 | { |
| 329 | auto dataSource = stdcxx . . $ std/::make_optionalcxx . . $ std/make_optional(e412eef0971c0904).<::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::StopDataSourcecxx . . $ AMD/OdFanCurve#StopDataSource#>( |
| 330 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_zero_rpm_enable", |
| 331 | stopInput), |
| 332 | stdcxx . . $ std/::nulloptcxx . . $ std/nullopt.}); |
| 333 | |
| 334 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts({stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>( |
| 335 | "fan_curve", stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(regularInput)), |
| 336 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), |
| 337 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}, |
| 338 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(dataSource)); |
| 339 | ts.preInitcxx . . $ AMD/OdFanCurve#preInit(151e9138769f295e).(ctlCmds); |
| 340 | |
| 341 | auto const &cmds = ctlCmds.commandscxx . . $ CommandQueueStub#commands(f070559094366392).(); |
| 342 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds.size() == 4); |
| 343 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].first == "fan_curve"); |
| 344 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].second == "r"); |
| 345 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].first == "fan_curve"); |
| 346 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].second == "c"); |
| 347 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[2].first == "fan_zero_rpm_enable"); |
| 348 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[2].second == "r"); |
| 349 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[3].first == "fan_zero_rpm_enable"); |
| 350 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[3].second == "c"); |
| 351 | } |
| 352 | } |
| 353 | |
| 354 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Does not generate post-init control commands with a pre-init zero " |
| 355 | "point curve without stop controls") |
| 356 | { |
| 357 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 358 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", zeroCurveInput), |
| 359 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}); |
| 360 | ts.preInitcxx . . $ AMD/OdFanCurve#preInit(151e9138769f295e).(ctlCmds); |
| 361 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 362 | ctlCmds.clearcxx . . $ CommandQueueStub#clear(49f6e7a06ebc5aa8).(); |
| 363 | |
| 364 | ts.postInitcxx . . $ AMD/OdFanCurve#postInit(151e9138769f295e).(ctlCmds); |
| 365 | |
| 366 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(ctlCmds.commands().empty()); |
| 367 | } |
| 368 | |
| 369 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Generate post-init control commands...") |
| 370 | { |
| 371 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("for curve control only with a pre-init non-zero points " |
| 372 | "curve restoring the pre-init curve state") |
| 373 | { |
| 374 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 375 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 376 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}); |
| 377 | ts.preInitcxx . . $ AMD/OdFanCurve#preInit(151e9138769f295e).(ctlCmds); |
| 378 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 379 | ctlCmds.clearcxx . . $ CommandQueueStub#clear(49f6e7a06ebc5aa8).(); |
| 380 | |
| 381 | ts.postInitcxx . . $ AMD/OdFanCurve#postInit(151e9138769f295e).(ctlCmds); |
| 382 | |
| 383 | auto const &cmds = ctlCmds.commandscxx . . $ CommandQueueStub#commands(f070559094366392).(); |
| 384 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds.size() == 6); |
| 385 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].first == "fan_curve"); |
| 386 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].second == "0 10 10"); |
| 387 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].first == "fan_curve"); |
| 388 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].second == "1 45 20"); |
| 389 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[2].first == "fan_curve"); |
| 390 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[2].second == "2 50 50"); |
| 391 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[3].first == "fan_curve"); |
| 392 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[3].second == "3 75 70"); |
| 393 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[4].first == "fan_curve"); |
| 394 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[4].second == "4 100 100"); |
| 395 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[5].second == "c"); |
| 396 | } |
| 397 | |
| 398 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("with stop and stop temp controls, restoring their pre-init state") |
| 399 | { |
| 400 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 401 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", |
| 402 | zeroCurveInput), |
| 403 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}, |
| 404 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(stopDataSource)); |
| 405 | ts.preInitcxx . . $ AMD/OdFanCurve#preInit(151e9138769f295e).(ctlCmds); |
| 406 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 407 | ctlCmds.clearcxx . . $ CommandQueueStub#clear(49f6e7a06ebc5aa8).(); |
| 408 | |
| 409 | ts.postInitcxx . . $ AMD/OdFanCurve#postInit(151e9138769f295e).(ctlCmds); |
| 410 | auto const &cmds = ctlCmds.commandscxx . . $ CommandQueueStub#commands(f070559094366392).(); |
| 411 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds.size() == 4); |
| 412 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].first == "fan_zero_rpm_enable"); |
| 413 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].second == "1"); |
| 414 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].first == "fan_zero_rpm_enable"); |
| 415 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].second == "c"); |
| 416 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[2].first == "fan_zero_rpm_stop_temperature"); |
| 417 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[2].second == "20"); |
| 418 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[3].first == "fan_zero_rpm_stop_temperature"); |
| 419 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[3].second == "c"); |
| 420 | } |
| 421 | |
| 422 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("with only stop control, restoring its pre-init state") |
| 423 | { |
| 424 | auto dataSource = stdcxx . . $ std/::make_optionalcxx . . $ std/make_optional(e412eef0971c0904).<::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::StopDataSourcecxx . . $ AMD/OdFanCurve#StopDataSource#>( |
| 425 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_zero_rpm_enable", |
| 426 | stopInput), |
| 427 | stdcxx . . $ std/::nulloptcxx . . $ std/nullopt.}); |
| 428 | |
| 429 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 430 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", |
| 431 | zeroCurveInput), |
| 432 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}, |
| 433 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(dataSource)); |
| 434 | ts.preInitcxx . . $ AMD/OdFanCurve#preInit(151e9138769f295e).(ctlCmds); |
| 435 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 436 | ctlCmds.clearcxx . . $ CommandQueueStub#clear(49f6e7a06ebc5aa8).(); |
| 437 | |
| 438 | ts.postInitcxx . . $ AMD/OdFanCurve#postInit(151e9138769f295e).(ctlCmds); |
| 439 | auto const &cmds = ctlCmds.commandscxx . . $ CommandQueueStub#commands(f070559094366392).(); |
| 440 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds.size() == 2); |
| 441 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].first == "fan_zero_rpm_enable"); |
| 442 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].second == "1"); |
| 443 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].first == "fan_zero_rpm_enable"); |
| 444 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].second == "c"); |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Initializes...") |
| 449 | { |
| 450 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Control curve with the custom default curve when the GPU has " |
| 451 | "default zero point curve") |
| 452 | { |
| 453 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts({stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>( |
| 454 | "fan_curve", zeroCurveInput), |
| 455 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), |
| 456 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}); |
| 457 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 458 | |
| 459 | auto defaultCurvePoints = ts.defaultCurvecxx . . $ AMD/OdFanCurve#defaultCurve(192ed0f52b05ada0).(); |
| 460 | auto controlPoints = tscxx . . $ std/vector#vector(a1201200cf0efa42)..controlPointscxx . . $ AMD/OdFanCurve#controlPoints(2597c67d77065b21).(); |
| 461 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(controlPoints.size() == 5); |
| 462 | auto const &[_i0, t0, s0] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0]; |
| 463 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t0 == defaultCurvePoints[0].first); |
| 464 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s0 == defaultCurvePoints[0].second); |
| 465 | auto const &[_i1, t1, s1] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).1]; |
| 466 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t1 == defaultCurvePoints[1].first); |
| 467 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s1 == defaultCurvePoints[1].second); |
| 468 | auto const &[_i2, t2, s2] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).2]; |
| 469 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t2 == defaultCurvePoints[2].first); |
| 470 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s2 == defaultCurvePoints[2].second); |
| 471 | auto const &[_i3, t3, s3] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).3]; |
| 472 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t3 == defaultCurvePoints[3].first); |
| 473 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s3 == defaultCurvePoints[3].second); |
| 474 | auto const &[_i4, t4, s4] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).4]; |
| 475 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t4 == defaultCurvePoints[4].first); |
| 476 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s4 == defaultCurvePoints[4].second); |
| 477 | } |
| 478 | |
| 479 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Control curve with the device default curve when the GPU has " |
| 480 | "default non-zero point curve") |
| 481 | { |
| 482 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 483 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 484 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}); |
| 485 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 486 | |
| 487 | auto controlPoints = tscxx . . $ std/vector#vector(a1201200cf0efa42)..controlPointscxx . . $ AMD/OdFanCurve#controlPoints(2597c67d77065b21).(); |
| 488 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(controlPoints.size() == 5); |
| 489 | auto const &[_i0, t0, s0] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0]; |
| 490 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t0 == units::temperature::celsius_t(10)); |
| 491 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s0 == units::concentration::percent_t(10)); |
| 492 | auto const &[_i1, t1, s1] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).1]; |
| 493 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t1 == units::temperature::celsius_t(45)); |
| 494 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s1 == units::concentration::percent_t(20)); |
| 495 | auto const &[_i2, t2, s2] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).2]; |
| 496 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t2 == units::temperature::celsius_t(50)); |
| 497 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s2 == units::concentration::percent_t(50)); |
| 498 | auto const &[_i3, t3, s3] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).3]; |
| 499 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t3 == units::temperature::celsius_t(75)); |
| 500 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s3 == units::concentration::percent_t(70)); |
| 501 | auto const &[_i4, t4, s4] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).4]; |
| 502 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t4 == units::temperature::celsius_t(100)); |
| 503 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s4 == units::concentration::percent_t(100)); |
| 504 | } |
| 505 | |
| 506 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Control curve with normalized curve point coordinates") |
| 507 | { |
| 508 | // clang-format off |
| 509 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> inputcxx . . $ std/vector#vector(9619226211e5a241).{ |
| 510 | "OD_FAN_CURVE:", |
| 511 | "0: 0C 0%", // out of range |
| 512 | "1: 45C 20%", |
| 513 | "2: 50C 50%", |
| 514 | "3: 75C 70%", |
| 515 | "4: 200C 200%", // out of range |
| 516 | "OD_RANGE:", |
| 517 | "FAN_CURVE(hotspot temp): 10C 100C", |
| 518 | "FAN_CURVE(fan speed): 10% 100%" |
| 519 | }; |
| 520 | // clang-format on |
| 521 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 522 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", input), |
| 523 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}); |
| 524 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 525 | |
| 526 | auto const &tempRange = ts.tempRangecxx . . $ AMD/OdFanCurve#tempRange(96d5d22a2fdf7529).(); |
| 527 | auto const &speedRange = ts.speedRangecxx . . $ AMD/OdFanCurve#speedRange(7a622c70bd5d17b6).(); |
| 528 | auto const &points = ts.controlPointscxx . . $ AMD/OdFanCurve#controlPoints(2597c67d77065b21).(); |
| 529 | |
| 530 | REQUIRE_FALSEcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:128:11`!( |
| 531 | std::any_of(points.cbegin(), points.cend(), [&](auto const &point) { |
| 532 | return std::get<1>(point) < tempRange.first || |
| 533 | std::get<1>(point) > tempRange.second || |
| 534 | std::get<2>(point) < speedRange.first || |
| 535 | std::get<2>(point) > speedRange.second; |
| 536 | })); |
| 537 | } |
| 538 | |
| 539 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Stop state") |
| 540 | { |
| 541 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 542 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 543 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}, |
| 544 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(stopDataSource)); |
| 545 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 546 | |
| 547 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(ts.stop()); |
| 548 | } |
| 549 | |
| 550 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Stop temperature state when available") |
| 551 | { |
| 552 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 553 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 554 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}, |
| 555 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(stopDataSource)); |
| 556 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 557 | |
| 558 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(ts.stopTemp() == units::temperature::celsius_t(20)); |
| 559 | } |
| 560 | } |
| 561 | |
| 562 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Imports curve state...") |
| 563 | { |
| 564 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("for curve control only") |
| 565 | { |
| 566 | // clang-format off |
| 567 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#, unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#>> |
| 568 | curvecxx . . $ std/vector#vector(9619226211e5a241). { |
| 569 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(10), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(15)}, |
| 570 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(20), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(25)}, |
| 571 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(30), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(35)}, |
| 572 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(40), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(45)}, |
| 573 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(50), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(55)}, |
| 574 | }; |
| 575 | // clang-format on |
| 576 | |
| 577 | FanCurveImporterStubcxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub# icxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub#FanCurveImporterStub(fb61027248bea3d2).(curve, false, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(40)); |
| 578 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 579 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 580 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}); |
| 581 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 582 | |
| 583 | ts.importControlcxx . . $ AMD/OdFanCurve#importControl(4f796e3ecd5dcd94).(i); |
| 584 | |
| 585 | auto controlPoints = tscxx . . $ std/vector#vector(a1201200cf0efa42)..controlPointscxx . . $ AMD/OdFanCurve#controlPoints(2597c67d77065b21).(); |
| 586 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(controlPoints.size() == 5); |
| 587 | auto const &[_i0, t0, s0] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0]; |
| 588 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t0 == units::temperature::celsius_t(10)); |
| 589 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s0 == units::concentration::percent_t(15)); |
| 590 | auto const &[_i1, t1, s1] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).1]; |
| 591 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t1 == units::temperature::celsius_t(20)); |
| 592 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s1 == units::concentration::percent_t(25)); |
| 593 | auto const &[_i2, t2, s2] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).2]; |
| 594 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t2 == units::temperature::celsius_t(30)); |
| 595 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s2 == units::concentration::percent_t(35)); |
| 596 | auto const &[_i3, t3, s3] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).3]; |
| 597 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t3 == units::temperature::celsius_t(40)); |
| 598 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s3 == units::concentration::percent_t(45)); |
| 599 | auto const &[_i4, t4, s4] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).4]; |
| 600 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t4 == units::temperature::celsius_t(50)); |
| 601 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s4 == units::concentration::percent_t(55)); |
| 602 | } |
| 603 | |
| 604 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("and stop state with stop and stop temp controls") |
| 605 | { |
| 606 | // clang-format off |
| 607 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#, unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#>> |
| 608 | curvecxx . . $ std/vector#vector(9619226211e5a241). { |
| 609 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(10), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(15)}, |
| 610 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(20), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(25)}, |
| 611 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(30), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(35)}, |
| 612 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(40), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(45)}, |
| 613 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(50), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(55)}, |
| 614 | }; |
| 615 | // clang-format on |
| 616 | |
| 617 | FanCurveImporterStubcxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub# icxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub#FanCurveImporterStub(fb61027248bea3d2).(curve, false, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(40)); |
| 618 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 619 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 620 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}, |
| 621 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(stopDataSource)); |
| 622 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 623 | |
| 624 | ts.importControlcxx . . $ AMD/OdFanCurve#importControl(4f796e3ecd5dcd94).(i); |
| 625 | |
| 626 | auto controlPoints = tscxx . . $ std/vector#vector(a1201200cf0efa42)..controlPointscxx . . $ AMD/OdFanCurve#controlPoints(2597c67d77065b21).(); |
| 627 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(controlPoints.size() == 5); |
| 628 | auto const &[_i0, t0, s0] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0]; |
| 629 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t0 == units::temperature::celsius_t(10)); |
| 630 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s0 == units::concentration::percent_t(15)); |
| 631 | auto const &[_i1, t1, s1] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).1]; |
| 632 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t1 == units::temperature::celsius_t(20)); |
| 633 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s1 == units::concentration::percent_t(25)); |
| 634 | auto const &[_i2, t2, s2] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).2]; |
| 635 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t2 == units::temperature::celsius_t(30)); |
| 636 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s2 == units::concentration::percent_t(35)); |
| 637 | auto const &[_i3, t3, s3] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).3]; |
| 638 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t3 == units::temperature::celsius_t(40)); |
| 639 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s3 == units::concentration::percent_t(45)); |
| 640 | auto const &[_i4, t4, s4] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).4]; |
| 641 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t4 == units::temperature::celsius_t(50)); |
| 642 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s4 == units::concentration::percent_t(55)); |
| 643 | |
| 644 | REQUIRE_FALSEcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:128:11`!(ts.stop()); |
| 645 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(ts.stopTemp() == units::temperature::celsius_t(40)); |
| 646 | } |
| 647 | |
| 648 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("and stop state with only stop control") |
| 649 | { |
| 650 | // clang-format off |
| 651 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#, unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#>> |
| 652 | curvecxx . . $ std/vector#vector(9619226211e5a241). { |
| 653 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(10), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(15)}, |
| 654 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(20), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(25)}, |
| 655 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(30), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(35)}, |
| 656 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(40), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(45)}, |
| 657 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(50), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(55)}, |
| 658 | }; |
| 659 | // clang-format on |
| 660 | |
| 661 | auto dataSource = stdcxx . . $ std/::make_optionalcxx . . $ std/make_optional(e412eef0971c0904).<::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::StopDataSourcecxx . . $ AMD/OdFanCurve#StopDataSource#>( |
| 662 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_zero_rpm_enable", |
| 663 | stopInput), |
| 664 | stdcxx . . $ std/::nulloptcxx . . $ std/nullopt.}); |
| 665 | |
| 666 | FanCurveImporterStubcxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub# icxx . . $ Tests/AMD/OdFanCurve/FanCurveImporterStub#FanCurveImporterStub(fb61027248bea3d2).(curve, false, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(40)); |
| 667 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 668 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 669 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}, |
| 670 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(dataSource)); |
| 671 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 672 | |
| 673 | ts.importControlcxx . . $ AMD/OdFanCurve#importControl(4f796e3ecd5dcd94).(i); |
| 674 | |
| 675 | auto controlPoints = tscxx . . $ std/vector#vector(a1201200cf0efa42)..controlPointscxx . . $ AMD/OdFanCurve#controlPoints(2597c67d77065b21).(); |
| 676 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(controlPoints.size() == 5); |
| 677 | auto const &[_i0, t0, s0] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0]; |
| 678 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t0 == units::temperature::celsius_t(10)); |
| 679 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s0 == units::concentration::percent_t(15)); |
| 680 | auto const &[_i1, t1, s1] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).1]; |
| 681 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t1 == units::temperature::celsius_t(20)); |
| 682 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s1 == units::concentration::percent_t(25)); |
| 683 | auto const &[_i2, t2, s2] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).2]; |
| 684 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t2 == units::temperature::celsius_t(30)); |
| 685 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s2 == units::concentration::percent_t(35)); |
| 686 | auto const &[_i3, t3, s3] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).3]; |
| 687 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t3 == units::temperature::celsius_t(40)); |
| 688 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s3 == units::concentration::percent_t(45)); |
| 689 | auto const &[_i4, t4, s4] = controlPoints[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).4]; |
| 690 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(t4 == units::temperature::celsius_t(50)); |
| 691 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s4 == units::concentration::percent_t(55)); |
| 692 | |
| 693 | REQUIRE_FALSEcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:128:11`!(ts.stop()); |
| 694 | } |
| 695 | } |
| 696 | |
| 697 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Export curve state...") |
| 698 | { |
| 699 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("for curve control only") |
| 700 | { |
| 701 | // clang-format off |
| 702 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#, unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#>> |
| 703 | curvecxx . . $ std/vector#vector(9619226211e5a241). { |
| 704 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(10), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(10)}, |
| 705 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(45), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(20)}, |
| 706 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(50), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(50)}, |
| 707 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(75), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(70)}, |
| 708 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(100), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(100)}, |
| 709 | }; |
| 710 | // clang-format on |
| 711 | |
| 712 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 713 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 714 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}); |
| 715 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 716 | |
| 717 | trompeloeilcxx . . $ trompeloeil/::sequencecxx . . $ trompeloeil/sequence# seq; |
| 718 | FanCurveExporterMockcxx . . $ Tests/AMD/OdFanCurve/FanCurveExporterMock# e; |
| 719 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(e, takeFanCurveRange(trompeloeil::_, trompeloeil::_)) |
| 720 | .WITHcxx . . $ `<external>/1068432606165018960/mock.hpp:4344:9`!(_1 == std::make_pair(units::temperature::celsius_t(10), |
| 721 | units::temperature::celsius_t(100))) |
| 722 | .WITHcxx . . $ `<external>/1068432606165018960/mock.hpp:4344:9`!(_2 == std::make_pair(units::concentration::percent_t(10), |
| 723 | units::concentration::percent_t(100))) |
| 724 | .IN_SEQUENCEcxx . . $ `<external>/3750106516996543135/sequence.hpp:394:9`!(seq); |
| 725 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(e, takeFanCurve(trompeloeil::_)) |
| 726 | .LR_WITHcxx . . $ `<external>/1068432606165018960/mock.hpp:4345:9`!(_1 == curve) |
| 727 | .IN_SEQUENCEcxx . . $ `<external>/3750106516996543135/sequence.hpp:394:9`!(seq); |
| 728 | |
| 729 | ts.exportControlcxx . . $ AMD/OdFanCurve#exportControl(40299682ab9c8676).(e); |
| 730 | } |
| 731 | |
| 732 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("and stop state with stop and stop temp controls") |
| 733 | { |
| 734 | // clang-format off |
| 735 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#, unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#>> |
| 736 | curvecxx . . $ std/vector#vector(9619226211e5a241). { |
| 737 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(10), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(10)}, |
| 738 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(45), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(20)}, |
| 739 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(50), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(50)}, |
| 740 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(75), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(70)}, |
| 741 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(100), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(100)}, |
| 742 | }; |
| 743 | // clang-format on |
| 744 | |
| 745 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 746 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 747 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}, |
| 748 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(stopDataSource)); |
| 749 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 750 | |
| 751 | trompeloeilcxx . . $ trompeloeil/::sequencecxx . . $ trompeloeil/sequence# seq; |
| 752 | FanCurveExporterMockcxx . . $ Tests/AMD/OdFanCurve/FanCurveExporterMock# e; |
| 753 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(e, takeFanCurveRange(trompeloeil::_, trompeloeil::_)) |
| 754 | .WITHcxx . . $ `<external>/1068432606165018960/mock.hpp:4344:9`!(_1 == std::make_pair(units::temperature::celsius_t(10), |
| 755 | units::temperature::celsius_t(100))) |
| 756 | .WITHcxx . . $ `<external>/1068432606165018960/mock.hpp:4344:9`!(_2 == std::make_pair(units::concentration::percent_t(10), |
| 757 | units::concentration::percent_t(100))) |
| 758 | .IN_SEQUENCEcxx . . $ `<external>/3750106516996543135/sequence.hpp:394:9`!(seq); |
| 759 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(e, takeFanCurve(trompeloeil::_)) |
| 760 | .LR_WITHcxx . . $ `<external>/1068432606165018960/mock.hpp:4345:9`!(_1 == curve) |
| 761 | .IN_SEQUENCEcxx . . $ `<external>/3750106516996543135/sequence.hpp:394:9`!(seq); |
| 762 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(e, takeFanStop(trompeloeil::_)) |
| 763 | .LR_WITHcxx . . $ `<external>/1068432606165018960/mock.hpp:4345:9`!(_1 == true) |
| 764 | .IN_SEQUENCEcxx . . $ `<external>/3750106516996543135/sequence.hpp:394:9`!(seq); |
| 765 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(e, takeFanStopTempRange(trompeloeil::_)) |
| 766 | .WITHcxx . . $ `<external>/1068432606165018960/mock.hpp:4344:9`!(_1 == std::make_pair(units::temperature::celsius_t(10), |
| 767 | units::temperature::celsius_t(100))) |
| 768 | .IN_SEQUENCEcxx . . $ `<external>/3750106516996543135/sequence.hpp:394:9`!(seq); |
| 769 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(e, takeFanStopTemp(trompeloeil::_)) |
| 770 | .LR_WITHcxx . . $ `<external>/1068432606165018960/mock.hpp:4345:9`!(_1 == units::temperature::celsius_t(20)) |
| 771 | .IN_SEQUENCEcxx . . $ `<external>/3750106516996543135/sequence.hpp:394:9`!(seq); |
| 772 | |
| 773 | ts.exportControlcxx . . $ AMD/OdFanCurve#exportControl(40299682ab9c8676).(e); |
| 774 | } |
| 775 | |
| 776 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("and stop state with only stop control") |
| 777 | { |
| 778 | // clang-format off |
| 779 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#, unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#>> |
| 780 | curvecxx . . $ std/vector#vector(9619226211e5a241). { |
| 781 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(10), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(10)}, |
| 782 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(45), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(20)}, |
| 783 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(50), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(50)}, |
| 784 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(75), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(70)}, |
| 785 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(100), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(100)}, |
| 786 | }; |
| 787 | // clang-format on |
| 788 | |
| 789 | auto dataSource = stdcxx . . $ std/::make_optionalcxx . . $ std/make_optional(e412eef0971c0904).<::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::StopDataSourcecxx . . $ AMD/OdFanCurve#StopDataSource#>( |
| 790 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_zero_rpm_enable", |
| 791 | stopInput), |
| 792 | stdcxx . . $ std/::nulloptcxx . . $ std/nullopt.}); |
| 793 | |
| 794 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 795 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 796 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}, |
| 797 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(dataSource)); |
| 798 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 799 | |
| 800 | trompeloeilcxx . . $ trompeloeil/::sequencecxx . . $ trompeloeil/sequence# seq; |
| 801 | FanCurveExporterMockcxx . . $ Tests/AMD/OdFanCurve/FanCurveExporterMock# e; |
| 802 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(e, takeFanCurveRange(trompeloeil::_, trompeloeil::_)) |
| 803 | .WITHcxx . . $ `<external>/1068432606165018960/mock.hpp:4344:9`!(_1 == std::make_pair(units::temperature::celsius_t(10), |
| 804 | units::temperature::celsius_t(100))) |
| 805 | .WITHcxx . . $ `<external>/1068432606165018960/mock.hpp:4344:9`!(_2 == std::make_pair(units::concentration::percent_t(10), |
| 806 | units::concentration::percent_t(100))) |
| 807 | .IN_SEQUENCEcxx . . $ `<external>/3750106516996543135/sequence.hpp:394:9`!(seq); |
| 808 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(e, takeFanCurve(trompeloeil::_)) |
| 809 | .LR_WITHcxx . . $ `<external>/1068432606165018960/mock.hpp:4345:9`!(_1 == curve) |
| 810 | .IN_SEQUENCEcxx . . $ `<external>/3750106516996543135/sequence.hpp:394:9`!(seq); |
| 811 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(e, takeFanStop(trompeloeil::_)) |
| 812 | .LR_WITHcxx . . $ `<external>/1068432606165018960/mock.hpp:4345:9`!(_1 == true) |
| 813 | .IN_SEQUENCEcxx . . $ `<external>/3750106516996543135/sequence.hpp:394:9`!(seq); |
| 814 | FORBID_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4339:9`!(e, takeFanStopTempRange(trompeloeil::_)); |
| 815 | FORBID_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4339:9`!(e, takeFanStopTemp(trompeloeil::_)); |
| 816 | |
| 817 | ts.exportControlcxx . . $ AMD/OdFanCurve#exportControl(40299682ab9c8676).(e); |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Generate clean control commands...") |
| 822 | { |
| 823 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("for curve control only") |
| 824 | { |
| 825 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 826 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 827 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}); |
| 828 | ts.cleanControlcxx . . $ AMD/OdFanCurve#cleanControl(151e9138769f295e).(ctlCmds); |
| 829 | |
| 830 | auto const &cmds = ctlCmds.commandscxx . . $ CommandQueueStub#commands(f070559094366392).(); |
| 831 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds.size() == 2); |
| 832 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].first == "fan_curve"); |
| 833 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].second == "r"); |
| 834 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].first == "fan_curve"); |
| 835 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].second == "c"); |
| 836 | } |
| 837 | |
| 838 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("with fan stop and stop temp controls") |
| 839 | { |
| 840 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 841 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 842 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}, |
| 843 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(stopDataSource)); |
| 844 | ts.cleanControlcxx . . $ AMD/OdFanCurve#cleanControl(151e9138769f295e).(ctlCmds); |
| 845 | |
| 846 | auto const &cmds = ctlCmds.commandscxx . . $ CommandQueueStub#commands(f070559094366392).(); |
| 847 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds.size() == 6); |
| 848 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].first == "fan_curve"); |
| 849 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].second == "r"); |
| 850 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].first == "fan_curve"); |
| 851 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].second == "c"); |
| 852 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[2].first == "fan_zero_rpm_enable"); |
| 853 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[2].second == "r"); |
| 854 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[3].first == "fan_zero_rpm_enable"); |
| 855 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[3].second == "c"); |
| 856 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[4].first == "fan_zero_rpm_stop_temperature"); |
| 857 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[4].second == "r"); |
| 858 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[5].first == "fan_zero_rpm_stop_temperature"); |
| 859 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[5].second == "c"); |
| 860 | } |
| 861 | |
| 862 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("with only fan stop control") |
| 863 | { |
| 864 | auto dataSource = stdcxx . . $ std/::make_optionalcxx . . $ std/make_optional(e412eef0971c0904).<::AMDcxx . . $ AMD/::OdFanCurvecxx . . $ AMD/OdFanCurve#::StopDataSourcecxx . . $ AMD/OdFanCurve#StopDataSource#>( |
| 865 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_zero_rpm_enable", |
| 866 | stopInput), |
| 867 | stdcxx . . $ std/::nulloptcxx . . $ std/nullopt.}); |
| 868 | |
| 869 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 870 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 871 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}, |
| 872 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(dataSource)); |
| 873 | ts.cleanControlcxx . . $ AMD/OdFanCurve#cleanControl(151e9138769f295e).(ctlCmds); |
| 874 | |
| 875 | auto const &cmds = ctlCmds.commandscxx . . $ CommandQueueStub#commands(f070559094366392).(); |
| 876 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds.size() == 4); |
| 877 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].first == "fan_curve"); |
| 878 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].second == "r"); |
| 879 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].first == "fan_curve"); |
| 880 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].second == "c"); |
| 881 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[2].first == "fan_zero_rpm_enable"); |
| 882 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[2].second == "r"); |
| 883 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[3].first == "fan_zero_rpm_enable"); |
| 884 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[3].second == "c"); |
| 885 | } |
| 886 | } |
| 887 | |
| 888 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Does not generate sync control commands when...") |
| 889 | { |
| 890 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("is synced") |
| 891 | { |
| 892 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 893 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 894 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}, |
| 895 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(stopDataSource)); |
| 896 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 897 | ts.syncControlcxx . . $ AMD/OdFanCurve#syncControl(151e9138769f295e).(ctlCmds); |
| 898 | ctlCmds.clearcxx . . $ CommandQueueStub#clear(49f6e7a06ebc5aa8).(); |
| 899 | |
| 900 | ts.syncControlcxx . . $ AMD/OdFanCurve#syncControl(151e9138769f295e).(ctlCmds); |
| 901 | |
| 902 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(ctlCmds.commands().empty()); |
| 903 | } |
| 904 | |
| 905 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("is synced for curve control only") |
| 906 | { |
| 907 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 908 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 909 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}); |
| 910 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 911 | ts.syncControlcxx . . $ AMD/OdFanCurve#syncControl(151e9138769f295e).(ctlCmds); |
| 912 | ctlCmds.clearcxx . . $ CommandQueueStub#clear(49f6e7a06ebc5aa8).(); |
| 913 | |
| 914 | ts.syncControlcxx . . $ AMD/OdFanCurve#syncControl(151e9138769f295e).(ctlCmds); |
| 915 | |
| 916 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(ctlCmds.commands().empty()); |
| 917 | } |
| 918 | } |
| 919 | |
| 920 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Does generate sync control commands when...") |
| 921 | { |
| 922 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("curve is in sync but the operation mode must be set to manual") |
| 923 | { |
| 924 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 925 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 926 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}); |
| 927 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 928 | |
| 929 | ts.syncControlcxx . . $ AMD/OdFanCurve#syncControl(151e9138769f295e).(ctlCmds); |
| 930 | |
| 931 | auto const &cmds = ctlCmds.commandscxx . . $ CommandQueueStub#commands(f070559094366392).(); |
| 932 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds.size() == 2); |
| 933 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].first == "fan_curve"); |
| 934 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].second == "r"); |
| 935 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].first == "fan_curve"); |
| 936 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].second == "c"); |
| 937 | } |
| 938 | |
| 939 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("curve is out of sync") |
| 940 | { |
| 941 | // clang-format off |
| 942 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#, |
| 943 | unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#>> |
| 944 | curvecxx . . $ std/vector#vector(9619226211e5a241). { |
| 945 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(15), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(15)}, |
| 946 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(20), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(20)}, |
| 947 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(30), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(30)}, |
| 948 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(40), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(40)}, |
| 949 | {unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(50), unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#(50)} |
| 950 | }; |
| 951 | // clang-format on |
| 952 | |
| 953 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 954 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 955 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}); |
| 956 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 957 | ts.syncControlcxx . . $ AMD/OdFanCurve#syncControl(151e9138769f295e).(ctlCmds); |
| 958 | ctlCmds.clearcxx . . $ CommandQueueStub#clear(49f6e7a06ebc5aa8).(); |
| 959 | |
| 960 | ts.fanCurvecxx . . $ AMD/OdFanCurve#fanCurve(949772e73cd104e8).(curvecxx . . $ std/vector#vector(a1201200cf0efa42).); |
| 961 | ts.syncControlcxx . . $ AMD/OdFanCurve#syncControl(151e9138769f295e).(ctlCmds); |
| 962 | |
| 963 | auto const &cmds = ctlCmds.commandscxx . . $ CommandQueueStub#commands(f070559094366392).(); |
| 964 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds.size() == 6); |
| 965 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].first == "fan_curve"); |
| 966 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].second == "0 15 15"); |
| 967 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].first == "fan_curve"); |
| 968 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].second == "1 20 20"); |
| 969 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[2].first == "fan_curve"); |
| 970 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[2].second == "2 30 30"); |
| 971 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[3].first == "fan_curve"); |
| 972 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[3].second == "3 40 40"); |
| 973 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[4].first == "fan_curve"); |
| 974 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[4].second == "4 50 50"); |
| 975 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[5].second == "c"); |
| 976 | } |
| 977 | |
| 978 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("stop control is out of sync") |
| 979 | { |
| 980 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 981 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 982 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}, |
| 983 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(stopDataSource)); |
| 984 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 985 | ts.syncControlcxx . . $ AMD/OdFanCurve#syncControl(151e9138769f295e).(ctlCmds); |
| 986 | ctlCmds.clearcxx . . $ CommandQueueStub#clear(49f6e7a06ebc5aa8).(); |
| 987 | |
| 988 | ts.stopcxx . . $ AMD/OdFanCurve#stop(b45ddcbc8423892c).(false); |
| 989 | ts.syncControlcxx . . $ AMD/OdFanCurve#syncControl(151e9138769f295e).(ctlCmds); |
| 990 | |
| 991 | auto const &cmds = ctlCmds.commandscxx . . $ CommandQueueStub#commands(f070559094366392).(); |
| 992 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds.size() == 2); |
| 993 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].first == "fan_zero_rpm_enable"); |
| 994 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].second == "0"); |
| 995 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].first == "fan_zero_rpm_enable"); |
| 996 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].second == "c"); |
| 997 | } |
| 998 | |
| 999 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("stop temperature control is out of sync") |
| 1000 | { |
| 1001 | OdFanCurveTestAdaptercxx . . $ Tests/AMD/OdFanCurve/OdFanCurveTestAdapter# ts( |
| 1002 | {stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>("fan_curve", regularInput), |
| 1003 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveTempRange), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(curveSpeedRange)}, |
| 1004 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(stopDataSource)); |
| 1005 | ts.initcxx . . $ AMD/OdFanCurve#init(49f6e7a06ebc5aa8).(); |
| 1006 | ts.syncControlcxx . . $ AMD/OdFanCurve#syncControl(151e9138769f295e).(ctlCmds); |
| 1007 | ctlCmds.clearcxx . . $ CommandQueueStub#clear(49f6e7a06ebc5aa8).(); |
| 1008 | |
| 1009 | ts.stopTempcxx . . $ AMD/OdFanCurve#stopTemp(5d232a6f9de3beb7).(unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#(40)); |
| 1010 | ts.syncControlcxx . . $ AMD/OdFanCurve#syncControl(151e9138769f295e).(ctlCmds); |
| 1011 | |
| 1012 | auto const &cmds = ctlCmds.commandscxx . . $ CommandQueueStub#commands(f070559094366392).(); |
| 1013 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds.size() == 2); |
| 1014 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].first == "fan_zero_rpm_stop_temperature"); |
| 1015 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[0].second == "40"); |
| 1016 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].first == "fan_zero_rpm_stop_temperature"); |
| 1017 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmds[1].second == "c"); |
| 1018 | } |
| 1019 | } |
| 1020 | } |
| 1021 | |
| 1022 | } // namespace Tests::AMD::OdFanCurve |