/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #include #include #include #include #include #include #include "tests.hxx" namespace target = slideshow::internal; using namespace ::com::sun::star; namespace { class UnoViewContainerTest : public CppUnit::TestFixture { public: void testContainer() { target::UnoViewContainer aContainer; TestViewSharedPtr pView = createTestView(); aContainer.addView( pView ); CPPUNIT_ASSERT_EQUAL_MESSAGE( "Testing container size", std::ptrdiff_t(1), std::distance( aContainer.begin(), aContainer.end() )); CPPUNIT_ASSERT_MESSAGE( "Testing disposedness", pView->paintScreen() ); aContainer.dispose(); CPPUNIT_ASSERT_EQUAL_MESSAGE( "Testing dispose: container must be empty", std::ptrdiff_t(0), std::distance( aContainer.begin(), aContainer.end() )); CPPUNIT_ASSERT_MESSAGE( "Testing dispose: all elements must receive dispose", !pView->paintScreen() ); } // hook up the test CPPUNIT_TEST_SUITE(UnoViewContainerTest); CPPUNIT_TEST(testContainer); //CPPUNIT_TEST(testLayerManager); CPPUNIT_TEST_SUITE_END(); }; // class UnoViewContainerTest CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(UnoViewContainerTest, "UnoViewContainerTest"); } // namespace /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ tro/collabora/co-24.04 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/canvas
AgeCommit message (Expand)Author
2020-02-03loplugin:makeshared (clang-cl)Stephan Bergmann
2020-01-31new loplugin:namespaceindentationNoel Grandin
2020-01-24loplugin:makeshared in basctl..canvasNoel Grandin
2020-01-14clang-tidy modernize-concat-nested-namespace in basic..canvasNoel Grandin
2020-01-10use more std::make_sharedNoel Grandin
2019-12-19Fix typoAndrea Gelmini
2019-12-19Fix typoAndrea Gelmini
2019-12-18sal_Char->char in canvas..codemakerNoel Grandin
2019-12-10force vclcanvas use with Skia, like it's with OpenGL (tdf#129076)Luboš Luňák
2019-12-05loplugin:external (clang-cl)Stephan Bergmann
2019-12-01Introduce o3tl::optional as an alias for std::optionalStephan Bergmann
2019-12-01Rewrite uses of boost::optional, Windows reduxStephan Bergmann
2019-11-26Remove unused DemoRenderer::maColorWhiteStephan Bergmann
2019-11-26Fix typoAndrea Gelmini
2019-11-26loplugin:consttobool (clang-cl)Stephan Bergmann
2019-11-22Extend loplugin:external to warn about classesStephan Bergmann
2019-11-06tdf#42949 Fix IWYU warnings in canvas/*/*cxxGabor Kelemen
2019-10-30tdf#42949 Fix IWYU warnings in canvas/source/*/*hxxGabor Kelemen
2019-10-11tdf#40534 correctly match page with memory slabJan-Marek Glogowski
2019-10-05The SystemEnvData passed into the canvas factories appears to be unusedStephan Bergmann
2019-10-05The checks should apparenty be maArguments.getLength() >= 5Stephan Bergmann
2019-10-04Related: tdf#127529 make it harder to misunderstand this VirtualDevice ctorCaolán McNamara
2019-10-02loplugin:fragiledestructor (clang-cl)Stephan Bergmann
2019-10-01loplugin:data (clang-cl)Stephan Bergmann
2019-10-01loplugin:stringconstant (clang-cl)Stephan Bergmann
2019-10-01loplugin:simplifyconstruct (clang-cl)Stephan Bergmann
2019-10-01lok jsdialogs: Introduce dumping of widgets hierarchy to vcl::Window.Jan Holesovsky
2019-09-26remove internal use of 16-bit packed formatsNoel Grandin
2019-08-25cid#1251600 Uncaught exceptionCaolán McNamara
2019-08-22loplugin:constmethod in canvas,comphelperNoel Grandin
2019-08-16Fix typosAndrea Gelmini
2019-08-16use more TOOLS_WARN_EXCEPTIONNoel Grandin
2019-07-31Improved loplugin:stringconstant (now that GCC 7 supports it): canvasStephan Bergmann
2019-07-27tdf#74702: vcl add OutputDevice::Flush() to remove GetOutDevType()Chris Sherlock
2019-07-19loplugin:referencecasting in canvas..chart2Noel Grandin
2019-07-19cid#1448246 Result is not floating-pointCaolán McNamara
2019-07-16cid#1448384 Calling risky randCaolán McNamara
2019-07-04remove some unneede vcl/bitmap.hxx includesNoel Grandin
2019-06-11Use hasElements to check Sequence emptiness in accessibility..canvasArkadiy Illarionov
2019-05-28Log used / selected canvas serviceJan-Marek Glogowski
2019-05-22New loplugin:dataStephan Bergmann
2019-05-22fix complex transformation in CanvasHelper::fillTexturedPolyPolygon()Luboš Luňák
2019-05-13fix wrong SET/QUERY flags passed to uno::ReferenceNoel Grandin
2019-05-08improve tools::Rectangle->basegfx::B2?Rectangle conversionNoel Grandin
2019-04-25Cut down on -pthread/-lpthread proliferationStephan Bergmann