Skip to content

Commit

Permalink
Merge pull request mantidproject#38533 from peterfpeterson/38457_remo…
Browse files Browse the repository at this point in the history
…ve_includes

Remove MantidKernel/System.h from unit tests - ornl-next
  • Loading branch information
peterfpeterson authored Dec 19, 2024
2 parents a3addd2 + da985e5 commit 5b8b829
Show file tree
Hide file tree
Showing 155 changed files with 5 additions and 216 deletions.
1 change: 0 additions & 1 deletion Framework/API/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ set(TEST_FILES
HistogramValidatorTest.h
HistoryItemTest.h
HistoryViewTest.h
IEventListTest.h
IFunction1DSpectrumTest.h
IFunction1DTest.h
IFunctionMDTest.h
Expand Down
1 change: 0 additions & 1 deletion Framework/API/test/CoordTransformTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#pragma once

#include "MantidAPI/CoordTransform.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/API/test/CostFunctionFactoryTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "MantidAPI/CostFunctionFactory.h"
#include "MantidAPI/FrameworkManager.h"
#include "MantidAPI/ICostFunction.h"
#include "MantidKernel/System.h"

#include <sstream>

Expand Down
1 change: 0 additions & 1 deletion Framework/API/test/DataProcessorAlgorithmTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "MantidAPI/DataProcessorAlgorithm.h"
#include "MantidAPI/WorkspaceHistory.h"
#include "MantidFrameworkTestHelpers/FakeObjects.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/API/test/EnabledWhenWorkspaceIsTypeTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once

#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/API/test/FuncMinimizerFactoryTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "MantidAPI/FuncMinimizerFactory.h"
#include "MantidAPI/IFuncMinimizer.h"
#include "MantidAPI/IFunction.h"
#include "MantidKernel/System.h"

#include <sstream>

Expand Down
1 change: 0 additions & 1 deletion Framework/API/test/FunctionFactoryTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include "MantidAPI/IPeakFunction.h"
#include "MantidAPI/MultiDomainFunction.h"
#include "MantidAPI/ParamFunction.h"
#include "MantidKernel/System.h"

#include <sstream>

Expand Down
20 changes: 0 additions & 20 deletions Framework/API/test/IEventListTest.h

This file was deleted.

1 change: 0 additions & 1 deletion Framework/API/test/ISpectrumTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once

#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/API/test/MDGeometryTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "MantidFrameworkTestHelpers/FakeObjects.h"
#include "MantidGeometry/MDGeometry/MDHistoDimension.h"
#include "MantidGeometry/MDGeometry/QSample.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include "MantidKernel/VMD.h"
#include <cxxtest/TestSuite.h>
Expand Down
1 change: 0 additions & 1 deletion Framework/API/test/MultipleExperimentInfosTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once

#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/API/test/MultipleFilePropertyTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "MantidAPI/MultipleFileProperty.h"
#include "MantidKernel/ConfigService.h"
#include "MantidKernel/Logger.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"

#include <cxxtest/TestSuite.h>
Expand Down
1 change: 0 additions & 1 deletion Framework/API/test/TextAxisTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "MantidFrameworkTestHelpers/FakeObjects.h"
#include "MantidKernel/EmptyValues.h"
#include "MantidKernel/Exception.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Unit.h"
#include "MantidKernel/UnitFactory.h"

Expand Down
1 change: 0 additions & 1 deletion Framework/API/test/WorkspaceGroupTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "MantidFrameworkTestHelpers/FakeObjects.h"
#include "MantidKernel/Exception.h"
#include "MantidKernel/Strings.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include "MantidKernel/WarningSuppressions.h"
#include "PropertyManagerHelper.h"
Expand Down
1 change: 0 additions & 1 deletion Framework/Algorithms/test/CrossCorrelateTestData.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "MantidCurveFitting/Functions/Bk2BkExpConvPV.h"
#include "MantidCurveFitting/Functions/Gaussian.h"
#include "MantidFrameworkTestHelpers/WorkspaceCreationHelper.h"
#include "MantidKernel/System.h"
#include "MantidKernel/UnitFactory.h"

using namespace Mantid;
Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/AnvredCorrectionTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "MantidFrameworkTestHelpers/ComponentCreationHelper.h"
#include "MantidFrameworkTestHelpers/FacilityHelper.h"
#include "MantidFrameworkTestHelpers/WorkspaceCreationHelper.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>
#include <math.h>
Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/CalculateUMatrixTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "MantidAPI/AnalysisDataService.h"
#include "MantidAPI/Run.h"
#include "MantidAPI/Sample.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/CentroidPeaksTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include "MantidFrameworkTestHelpers/WorkspaceCreationHelper.h"
#include "MantidHistogramData/LinearGenerator.h"
#include "MantidKernel/OptionalBool.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cmath>
#include <cxxtest/TestSuite.h>
Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/FindUBUsingFFTTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include "MantidAPI/AnalysisDataService.h"
#include "MantidAPI/Sample.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/FindUBUsingIndexedPeaksTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include "MantidAPI/AnalysisDataService.h"
#include "MantidAPI/Sample.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/FindUBUsingLatticeParametersTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "MantidAPI/AnalysisDataService.h"
#include "MantidAPI/Sample.h"
#include "MantidDataHandling/DeleteTableRows.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/LoadHKLTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "MantidGeometry/Crystal/OrientedLattice.h"
#include "MantidGeometry/IDTypes.h"
#include "MantidKernel/Material.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <Poco/File.h>
#include <cxxtest/TestSuite.h>
Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/LoadIsawPeaksTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "MantidGeometry/IDTypes.h"
#include "MantidGeometry/Instrument/Goniometer.h"
#include "MantidKernel/Matrix.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/LoadIsawSpectrumTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "MantidFrameworkTestHelpers/WorkspaceCreationHelper.h"
#include "MantidGeometry/Crystal/OrientedLattice.h"
#include "MantidKernel/Matrix.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/LoadIsawUBTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "MantidFrameworkTestHelpers/WorkspaceCreationHelper.h"
#include "MantidGeometry/Crystal/OrientedLattice.h"
#include "MantidKernel/Matrix.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/NormaliseVanadiumTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "MantidFrameworkTestHelpers/WorkspaceCreationHelper.h"
#include "MantidHistogramData/LinearGenerator.h"
#include "MantidKernel/OptionalBool.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cmath>
#include <cxxtest/TestSuite.h>
Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/OptimizeLatticeForCellTypeTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "MantidAPI/AnalysisDataService.h"
#include "MantidAPI/IPeaksWorkspace.h"
#include "MantidAPI/Sample.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/PeakIntegrationTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include "MantidFrameworkTestHelpers/WorkspaceCreationHelper.h"
#include "MantidHistogramData/LinearGenerator.h"
#include "MantidKernel/OptionalBool.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cmath>
#include <random>
Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/PeakIntensityVsRadiusTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include "MantidDataObjects/PeaksWorkspace.h"
#include "MantidFrameworkTestHelpers/ComponentCreationHelper.h"
#include "MantidGeometry/Instrument.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include "MantidKernel/V3D.h"
#include <cxxtest/TestSuite.h>
Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/PredictPeaksTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "MantidGeometry/IDTypes.h"
#include "MantidGeometry/Instrument/Goniometer.h"
#include "MantidKernel/ConfigService.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include "MantidKernel/V3D.h"
#include <cxxtest/TestSuite.h>
Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/PredictSatellitePeaksTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include "MantidDataObjects/PeaksWorkspace.h"
#include "MantidFrameworkTestHelpers/ComponentCreationHelper.h"
#include "MantidGeometry/Instrument/Goniometer.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/SaveHKLTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "MantidGeometry/Instrument/Goniometer.h"
#include "MantidGeometry/Objects/ShapeFactory.h"
#include "MantidKernel/Material.h"
#include "MantidKernel/System.h"
#include "MantidKernel/TimeSeriesProperty.h"
#include "MantidKernel/Timer.h"
#include <Poco/File.h>
Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/SaveIsawPeaksTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "MantidDataObjects/PeaksWorkspace.h"
#include "MantidFrameworkTestHelpers/ComponentCreationHelper.h"
#include "MantidGeometry/IDTypes.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include "MantidKernel/V3D.h"
#include <Poco/File.h>
Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/SaveIsawUBTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include "MantidFrameworkTestHelpers/WorkspaceCreationHelper.h"
#include "MantidKernel/Matrix.h"
#include "MantidKernel/Strings.h"
#include "MantidKernel/System.h"

#include <cxxtest/TestSuite.h>
#include <fstream>
Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/SaveLauenormTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "MantidDataObjects/PeaksWorkspace.h"
#include "MantidFrameworkTestHelpers/ComponentCreationHelper.h"
#include "MantidGeometry/IDTypes.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <Poco/File.h>
#include <cxxtest/TestSuite.h>
Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/SelectCellOfTypeTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once

#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/SelectCellWithFormTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once

#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/SetGoniometerTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "MantidFrameworkTestHelpers/WorkspaceCreationHelper.h"
#include "MantidGeometry/Instrument/Goniometer.h"
#include "MantidKernel/Matrix.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include "MantidKernel/V3D.h"
#include <cxxtest/TestSuite.h>
Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/SetUBTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once

#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/ShowPossibleCellsTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#pragma once

#include "MantidJson/Json.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/SortHKLTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "MantidGeometry/Crystal/OrientedLattice.h"
#include "MantidGeometry/IDTypes.h"
#include "MantidKernel/Material.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <Poco/File.h>
#include <cxxtest/TestSuite.h>
Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/StatisticsOfPeaksWorkspaceTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include "MantidFrameworkTestHelpers/ComponentCreationHelper.h"
#include "MantidGeometry/Crystal/OrientedLattice.h"
#include "MantidGeometry/IDTypes.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <Poco/File.h>
#include <cxxtest/TestSuite.h>
Expand Down
1 change: 0 additions & 1 deletion Framework/Crystal/test/TransformHKLTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once

#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/CurveFitting/test/Algorithms/LeBailFitTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once

#include "MantidKernel/System.h"
#include <cxxtest/TestSuite.h>

#include "MantidAPI/TableRow.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include "MantidAPI/MatrixWorkspace.h"
#include "MantidAPI/WorkspaceFactory.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include "MantidKernel/cow_ptr.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "MantidAPI/IFunction1D.h"
#include "MantidAPI/IPeakFunction.h"
#include "MantidAPI/ParamFunction.h"
#include "MantidKernel/System.h"

#include <sstream>

Expand Down
1 change: 0 additions & 1 deletion Framework/DataHandling/test/DetermineChunkingTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once

#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"
#include <cxxtest/TestSuite.h>

Expand Down
1 change: 0 additions & 1 deletion Framework/DataHandling/test/GenerateGroupingPowder2Test.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include "MantidFrameworkTestHelpers/WorkspaceCreationHelper.h"
#include "MantidGeometry/Crystal/AngleUnits.h"
#include "MantidGeometry/Instrument/DetectorInfo.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Timer.h"

#include <Poco/DOM/DOMParser.h>
Expand Down
Loading

0 comments on commit 5b8b829

Please sign in to comment.