1414//
1515#include " testFixture.h"
1616
17- #include " layerEditorDCCFunctions.h"
1817#include " warningDialogs.h"
1918
2019#include < QtWidgets/QApplication>
@@ -31,48 +30,6 @@ namespace UsdLayerEditor {
3130
3231void LayerEditorTestFixture::SetUp ()
3332{
34- EditForwardingFns ef;
35- ef.supportsEditForwarding = [this ]() { return _efSupported; };
36- ef.echoEditForwarding = []() { return false ; };
37- ef.setEchoEditForwarding = [](bool ) {};
38- setEditForwardingFns (ef);
39-
40- DccObjectFns dcc;
41- dcc.isDccObjectStageIncoming = [this ](const std::string&) { return _stageIncoming; };
42- dcc.isDccObjectSharedStage = [this ](const std::string&) { return _sharedStage; };
43- setDccObjectFns (dcc);
44-
45- ComponentFns component;
46- component.isStageAComponent
47- = [this ](const std::string&) { return _isComponent; };
48- component.isUnsavedComponent
49- = [this ](const PXR_NS ::UsdStageRefPtr&) { return _isUnsavedComponent; };
50- component.shouldDisplayComponentInitialSaveDialog
51- = [](const PXR_NS ::UsdStageRefPtr&, const std::string&) { return false ; };
52- component.saveComponent
53- = [this ](const PXR_NS ::UsdStageRefPtr&, const std::string&) { ++_saveComponentCalls; };
54- component.reloadComponent
55- = [this ](const std::string&) { ++_reloadComponentCalls; };
56- component.moveComponent
57- = [this ](const std::string&, const std::string&, const std::string&) {
58- return _moveComponentResult;
59- };
60- component.renameProxyShape
61- = [](const std::string&, const std::string& name) { return std::string (" |" ) + name; };
62- component.captureSessionLayer
63- = [](const std::string&) { return PXR_NS ::SdfLayerRefPtr {}; };
64- component.transferSessionLayer
65- = [this ](const PXR_NS ::SdfLayerRefPtr&, const std::string&) { ++_transferSessionCalls; };
66- component.setProxyRootLayerPath
67- = [this ](const std::string&, const std::string&, const PXR_NS ::SdfLayerRefPtr&) {
68- ++_setProxyRootPathCalls;
69- };
70- setComponentFns (component);
71-
72- SaveOptionFns saveOption;
73- saveOption.confirmExistingFileSave = [this ]() { return _confirmExistingFileSave; };
74- setSaveOptionFns (saveOption);
75-
7633 setModalDialogTestHandler ([this ](const QString&, const QString&) {
7734 ++_modalDialogCount;
7835 return _modalDialogAnswer;
0 commit comments