| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/tests/src/test_controlgroup.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/controlmock.h"cxx . . $ `<file>/tests/src/common/controlmock.h`/ |
| 9 | #include "core/components/controls/controlgroup.h"cxx . . $ `<file>/src/core/components/controls/controlgroup.h`/ |
| 10 | |
| 11 | extern template struct trompeloeil::reportercxx . . $ trompeloeil/reporter#<trompeloeilcxx . . $ trompeloeil/::specializedcxx . . $ trompeloeil/specialized#>; |
| 12 | |
| 13 | namespace Testscxx . . $ Tests/::ControlGroupcxx . . $ Tests/ControlGroup/ { |
| 14 | |
| 15 | class ControlGroupTestAdaptercxx . . $ Tests/ControlGroup/ControlGroupTestAdapter# : public ::ControlGroupcxx . . $ ControlGroup# |
| 16 | { |
| 17 | public: |
| 18 | using ControlGroupcxx . . $ ControlGroup#::ControlGroupcxx . . $ Tests/ControlGroup/ControlGroupTestAdapter#ControlGroupTestAdapter(39c4facc05e39c8e).; |
| 19 | |
| 20 | using ControlGroupcxx . . $ ControlGroup#::cleanControlcxx . . $ Tests/ControlGroup/ControlGroupTestAdapter#cleanControl(151e9138769f295e).; |
| 21 | using ControlGroupcxx . . $ ControlGroup#::exportControlcxx . . $ Tests/ControlGroup/ControlGroupTestAdapter#exportControl(40299682ab9c8676).; |
| 22 | using ControlGroupcxx . . $ ControlGroup#::importControlcxx . . $ Tests/ControlGroup/ControlGroupTestAdapter#importControl(4f796e3ecd5dcd94).; |
| 23 | using ControlGroupcxx . . $ ControlGroup#::syncControlcxx . . $ Tests/ControlGroup/ControlGroupTestAdapter#syncControl(151e9138769f295e).; |
| 24 | }; |
| 25 | |
| 26 | class ControlModeImporterStubcxx . . $ Tests/ControlGroup/ControlModeImporterStub# : public ::ControlGroupcxx . . $ ControlGroup#::Importercxx . . $ IControl#Importer# |
| 27 | { |
| 28 | public: |
| 29 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Importablecxx . . $ Importable#::Importercxx . . $ Importable#Importer#>> |
| 30 | provideImportercxx . . $ Tests/ControlGroup/ControlModeImporterStub#provideImporter(c13a3bcac0db4745).(Itemcxx . . $ Item# const &) override |
| 31 | { |
| 32 | return {cxx . . $ std/optional#optional(ced63f7c635d850d).}; |
| 33 | } |
| 34 | |
| 35 | bool provideActivecxx . . $ Tests/ControlGroup/ControlModeImporterStub#provideActive(50ce9a9e25b4a850).() const override |
| 36 | { |
| 37 | return false; |
| 38 | } |
| 39 | }; |
| 40 | |
| 41 | class ControlModeExporterMockcxx . . $ Tests/ControlGroup/ControlModeExporterMock# : public ::ControlGroupcxx . . $ ControlGroup#::Exportercxx . . $ IControl#Exporter# |
| 42 | { |
| 43 | public: |
| 44 | MAKE_MOCK1cxx . . $ `<external>/1068432606165018960/mock.hpp:4223:9`!(takeActive, void(bool), override); |
| 45 | MAKE_MOCK1cxx . . $ `<external>/1068432606165018960/mock.hpp:4223:9`!( |
| 46 | provideExporter, |
| 47 | std::optional<std::reference_wrapper<Exportable::Exporter>>(Item const &), |
| 48 | override); |
| 49 | }; |
| 50 | |
| 51 | TEST_CASEcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:144:11`!("ControlGroup tests", "[GPU][ControlGroup]") |
| 52 | { |
| 53 | stdcxx . . $ std/::string_viewcxx . . $ std/string_view# const idcxx . . $ std/basic_string_view#basic_string_view(837a1ee5a10cb792).{"_id_"}; |
| 54 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IControlcxx . . $ IControl#>> controlMockscxx . . $ std/vector#vector(49f6e7a06ebc5aa8).; |
| 55 | |
| 56 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("ID is assigned") |
| 57 | { |
| 58 | ControlGroupTestAdaptercxx . . $ Tests/ControlGroup/ControlGroupTestAdapter# ts(idcxx . . $ std/basic_string_view#basic_string_view(b419d9def655ef02)., stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(controlMocks), true); |
| 59 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(ts.ID() == id); |
| 60 | } |
| 61 | |
| 62 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Pre-init its controls") |
| 63 | { |
| 64 | controlMocks.emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<ControlMockcxx . . $ ControlMock#>()); |
| 65 | ControlMockcxx . . $ ControlMock# *controlMock = static_cast<ControlMockcxx . . $ ControlMock# *>(controlMocks[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0].getcxx . . $ std/unique_ptr#get(ea7391e9eeeaf20e).()); |
| 66 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*controlMock, preInit(trompeloeil::_)); |
| 67 | |
| 68 | ControlGroupTestAdaptercxx . . $ Tests/ControlGroup/ControlGroupTestAdapter# ts(idcxx . . $ std/basic_string_view#basic_string_view(b419d9def655ef02)., stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(controlMocks), true); |
| 69 | CommandQueueStubcxx . . $ CommandQueueStub# ctlCmds; |
| 70 | ts.preInitcxx . . $ ControlGroup#preInit(151e9138769f295e).(ctlCmds); |
| 71 | } |
| 72 | |
| 73 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Post-init its controls") |
| 74 | { |
| 75 | controlMocks.emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<ControlMockcxx . . $ ControlMock#>()); |
| 76 | ControlMockcxx . . $ ControlMock# *controlMock = static_cast<ControlMockcxx . . $ ControlMock# *>(controlMocks[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0].getcxx . . $ std/unique_ptr#get(ea7391e9eeeaf20e).()); |
| 77 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*controlMock, postInit(trompeloeil::_)); |
| 78 | |
| 79 | ControlGroupTestAdaptercxx . . $ Tests/ControlGroup/ControlGroupTestAdapter# ts(idcxx . . $ std/basic_string_view#basic_string_view(b419d9def655ef02)., stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(controlMocks), true); |
| 80 | CommandQueueStubcxx . . $ CommandQueueStub# ctlCmds; |
| 81 | ts.postInitcxx . . $ ControlGroup#postInit(151e9138769f295e).(ctlCmds); |
| 82 | } |
| 83 | |
| 84 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("On initialization...") |
| 85 | { |
| 86 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Initialize its controls") |
| 87 | { |
| 88 | controlMocks.emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<ControlMockcxx . . $ ControlMock#>()); |
| 89 | ControlMockcxx . . $ ControlMock# *controlMock = |
| 90 | static_cast<ControlMockcxx . . $ ControlMock# *>(controlMocks[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0].getcxx . . $ std/unique_ptr#get(ea7391e9eeeaf20e).()); |
| 91 | stdcxx . . $ std/::stringcxx . . $ std/string# const controlMockIDcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).("_control_mock_"); |
| 92 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*controlMock, init()); |
| 93 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, ID()).LR_RETURNcxx . . $ `<external>/1068432606165018960/mock.hpp:4349:9`!(controlMockID); |
| 94 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, active()).RETURNcxx . . $ `<external>/1068432606165018960/mock.hpp:4348:9`!(true); |
| 95 | |
| 96 | ControlGroupTestAdaptercxx . . $ Tests/ControlGroup/ControlGroupTestAdapter# ts(idcxx . . $ std/basic_string_view#basic_string_view(b419d9def655ef02)., stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(controlMocks), true); |
| 97 | ts.initcxx . . $ ControlGroup#init(49f6e7a06ebc5aa8).(); |
| 98 | } |
| 99 | |
| 100 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Activate all inactive controls on initialization") |
| 101 | { |
| 102 | controlMocks.emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<ControlMockcxx . . $ ControlMock#>()); |
| 103 | controlMocks.emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<ControlMockcxx . . $ ControlMock#>()); |
| 104 | |
| 105 | ControlMockcxx . . $ ControlMock# *controlMock = |
| 106 | static_cast<ControlMockcxx . . $ ControlMock# *>(controlMocks[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0].getcxx . . $ std/unique_ptr#get(ea7391e9eeeaf20e).()); |
| 107 | stdcxx . . $ std/::stringcxx . . $ std/string# const inactiveControlMockID0cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).("_active_control_mock"); |
| 108 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, init()); |
| 109 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, ID()).LR_RETURNcxx . . $ `<external>/1068432606165018960/mock.hpp:4349:9`!(inactiveControlMockID0); |
| 110 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, active()).RETURNcxx . . $ `<external>/1068432606165018960/mock.hpp:4348:9`!(true); |
| 111 | FORBID_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4339:9`!(*controlMock, activate(trompeloeil::_)); |
| 112 | |
| 113 | controlMock = static_cast<ControlMockcxx . . $ ControlMock# *>(controlMocks[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).1].getcxx . . $ std/unique_ptr#get(ea7391e9eeeaf20e).()); |
| 114 | stdcxx . . $ std/::stringcxx . . $ std/string# const inactiveControlMockID1cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).("_inactive_control_mock"); |
| 115 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, init()); |
| 116 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, ID()).LR_RETURNcxx . . $ `<external>/1068432606165018960/mock.hpp:4349:9`!(inactiveControlMockID1); |
| 117 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, active()).RETURNcxx . . $ `<external>/1068432606165018960/mock.hpp:4348:9`!(false); |
| 118 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*controlMock, activate(true)); |
| 119 | |
| 120 | ControlGroupTestAdaptercxx . . $ Tests/ControlGroup/ControlGroupTestAdapter# ts(idcxx . . $ std/basic_string_view#basic_string_view(b419d9def655ef02)., stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(controlMocks), true); |
| 121 | ts.initcxx . . $ ControlGroup#init(49f6e7a06ebc5aa8).(); |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Imports controls") |
| 126 | { |
| 127 | controlMocks.emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<ControlMockcxx . . $ ControlMock#>()); |
| 128 | |
| 129 | ControlMockcxx . . $ ControlMock# *controlMock = static_cast<ControlMockcxx . . $ ControlMock# *>(controlMocks[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0].getcxx . . $ std/unique_ptr#get(ea7391e9eeeaf20e).()); |
| 130 | stdcxx . . $ std/::stringcxx . . $ std/string# const controlMockIDcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).("_control_mock_"); |
| 131 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, init()); |
| 132 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, ID()).LR_RETURNcxx . . $ `<external>/1068432606165018960/mock.hpp:4349:9`!(controlMockID); |
| 133 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, active()).RETURNcxx . . $ `<external>/1068432606165018960/mock.hpp:4348:9`!(true); |
| 134 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*controlMock, importWith(trompeloeil::_)); |
| 135 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*controlMock, activate(true)); |
| 136 | |
| 137 | ControlModeImporterStubcxx . . $ Tests/ControlGroup/ControlModeImporterStub# i; |
| 138 | ControlGroupTestAdaptercxx . . $ Tests/ControlGroup/ControlGroupTestAdapter# ts(idcxx . . $ std/basic_string_view#basic_string_view(b419d9def655ef02)., stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(controlMocks), true); |
| 139 | ts.initcxx . . $ ControlGroup#init(49f6e7a06ebc5aa8).(); |
| 140 | ts.importControlcxx . . $ ControlGroup#importControl(4f796e3ecd5dcd94).(i); |
| 141 | } |
| 142 | |
| 143 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Export controls") |
| 144 | { |
| 145 | controlMocks.emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<ControlMockcxx . . $ ControlMock#>()); |
| 146 | |
| 147 | ControlMockcxx . . $ ControlMock# *controlMock = static_cast<ControlMockcxx . . $ ControlMock# *>(controlMocks[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0].getcxx . . $ std/unique_ptr#get(ea7391e9eeeaf20e).()); |
| 148 | stdcxx . . $ std/::stringcxx . . $ std/string# const controlMockIDcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).("_control_mock_"); |
| 149 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, init()); |
| 150 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, ID()).LR_RETURNcxx . . $ `<external>/1068432606165018960/mock.hpp:4349:9`!(controlMockID); |
| 151 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, active()).RETURNcxx . . $ `<external>/1068432606165018960/mock.hpp:4348:9`!(true); |
| 152 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*controlMock, exportWith(trompeloeil::_)); |
| 153 | |
| 154 | ControlModeExporterMockcxx . . $ Tests/ControlGroup/ControlModeExporterMock# e; |
| 155 | ControlGroupTestAdaptercxx . . $ Tests/ControlGroup/ControlGroupTestAdapter# ts(idcxx . . $ std/basic_string_view#basic_string_view(b419d9def655ef02)., stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(controlMocks), true); |
| 156 | ts.initcxx . . $ ControlGroup#init(49f6e7a06ebc5aa8).(); |
| 157 | ts.exportControlcxx . . $ ControlGroup#exportControl(40299682ab9c8676).(e); |
| 158 | } |
| 159 | |
| 160 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Clean controls") |
| 161 | { |
| 162 | controlMocks.emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<ControlMockcxx . . $ ControlMock#>()); |
| 163 | |
| 164 | ControlMockcxx . . $ ControlMock# *controlMock = static_cast<ControlMockcxx . . $ ControlMock# *>(controlMocks[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0].getcxx . . $ std/unique_ptr#get(ea7391e9eeeaf20e).()); |
| 165 | stdcxx . . $ std/::stringcxx . . $ std/string# const controlMockIDcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).("_control_mock_"); |
| 166 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, init()); |
| 167 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, ID()).LR_RETURNcxx . . $ `<external>/1068432606165018960/mock.hpp:4349:9`!(controlMockID); |
| 168 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, active()).RETURNcxx . . $ `<external>/1068432606165018960/mock.hpp:4348:9`!(true); |
| 169 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*controlMock, clean(trompeloeil::_)); |
| 170 | |
| 171 | ControlGroupTestAdaptercxx . . $ Tests/ControlGroup/ControlGroupTestAdapter# ts(idcxx . . $ std/basic_string_view#basic_string_view(b419d9def655ef02)., stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(controlMocks), true); |
| 172 | ts.initcxx . . $ ControlGroup#init(49f6e7a06ebc5aa8).(); |
| 173 | CommandQueueStubcxx . . $ CommandQueueStub# ctlCmds; |
| 174 | ts.cleanControlcxx . . $ ControlGroup#cleanControl(151e9138769f295e).(ctlCmds); |
| 175 | } |
| 176 | |
| 177 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Request clean once on controls when its in dirty state") |
| 178 | { |
| 179 | controlMocks.emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<ControlMockcxx . . $ ControlMock#>()); |
| 180 | |
| 181 | ControlMockcxx . . $ ControlMock# *controlMock = static_cast<ControlMockcxx . . $ ControlMock# *>(controlMocks[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0].getcxx . . $ std/unique_ptr#get(ea7391e9eeeaf20e).()); |
| 182 | stdcxx . . $ std/::stringcxx . . $ std/string# const controlMockIDcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).("_control_mock_"); |
| 183 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, init()); |
| 184 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, ID()).LR_RETURNcxx . . $ `<external>/1068432606165018960/mock.hpp:4349:9`!(controlMockID); |
| 185 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, active()).RETURNcxx . . $ `<external>/1068432606165018960/mock.hpp:4348:9`!(true); |
| 186 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*controlMock, cleanOnce()); |
| 187 | |
| 188 | ControlGroupTestAdaptercxx . . $ Tests/ControlGroup/ControlGroupTestAdapter# ts(idcxx . . $ std/basic_string_view#basic_string_view(b419d9def655ef02)., stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(controlMocks), true); |
| 189 | ts.initcxx . . $ ControlGroup#init(49f6e7a06ebc5aa8).(); |
| 190 | ts.activatecxx . . $ ControlGroup#activate(b45ddcbc8423892c).(true); |
| 191 | ts.activatecxx . . $ ControlGroup#activate(b45ddcbc8423892c).(false); |
| 192 | } |
| 193 | |
| 194 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Clean once is propagated to controls") |
| 195 | { |
| 196 | controlMocks.emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<ControlMockcxx . . $ ControlMock#>()); |
| 197 | |
| 198 | ControlMockcxx . . $ ControlMock# *controlMock = static_cast<ControlMockcxx . . $ ControlMock# *>(controlMocks[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0].getcxx . . $ std/unique_ptr#get(ea7391e9eeeaf20e).()); |
| 199 | stdcxx . . $ std/::stringcxx . . $ std/string# const controlMockIDcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).("_control_mock_"); |
| 200 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, init()); |
| 201 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, ID()).LR_RETURNcxx . . $ `<external>/1068432606165018960/mock.hpp:4349:9`!(controlMockID); |
| 202 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, active()).RETURNcxx . . $ `<external>/1068432606165018960/mock.hpp:4348:9`!(true); |
| 203 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*controlMock, cleanOnce()); |
| 204 | |
| 205 | ControlGroupTestAdaptercxx . . $ Tests/ControlGroup/ControlGroupTestAdapter# ts(idcxx . . $ std/basic_string_view#basic_string_view(b419d9def655ef02)., stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(controlMocks), true); |
| 206 | ts.initcxx . . $ ControlGroup#init(49f6e7a06ebc5aa8).(); |
| 207 | ts.cleanOncecxx . . $ ControlGroup#cleanOnce(49f6e7a06ebc5aa8).(); |
| 208 | } |
| 209 | |
| 210 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Sync controls") |
| 211 | { |
| 212 | controlMocks.emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<ControlMockcxx . . $ ControlMock#>()); |
| 213 | |
| 214 | ControlMockcxx . . $ ControlMock# *controlMock = static_cast<ControlMockcxx . . $ ControlMock# *>(controlMocks[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).0].getcxx . . $ std/unique_ptr#get(ea7391e9eeeaf20e).()); |
| 215 | stdcxx . . $ std/::stringcxx . . $ std/string# const controlMockIDcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).("_control_mock_"); |
| 216 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, init()); |
| 217 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, ID()).LR_RETURNcxx . . $ `<external>/1068432606165018960/mock.hpp:4349:9`!(controlMockID); |
| 218 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*controlMock, active()).RETURNcxx . . $ `<external>/1068432606165018960/mock.hpp:4348:9`!(true); |
| 219 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*controlMock, sync(trompeloeil::_)); |
| 220 | |
| 221 | ControlGroupTestAdaptercxx . . $ Tests/ControlGroup/ControlGroupTestAdapter# ts(idcxx . . $ std/basic_string_view#basic_string_view(b419d9def655ef02)., stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(controlMocks), true); |
| 222 | ts.initcxx . . $ ControlGroup#init(49f6e7a06ebc5aa8).(); |
| 223 | CommandQueueStubcxx . . $ CommandQueueStub# ctlCmds; |
| 224 | ts.syncControlcxx . . $ ControlGroup#syncControl(151e9138769f295e).(ctlCmds); |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | } // namespace Tests::ControlGroup |