[Libreoffice-commits] online.git: test/TileCacheTests.cpp
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Aug 16 14:05:07 UTC 2018
test/TileCacheTests.cpp | 27 ---------------------------
1 file changed, 27 deletions(-)
New commits:
commit 1001f083f13248e2a51c03391f46cc4fef4636f9
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Thu Aug 16 16:02:20 2018 +0200
Commit: Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Thu Aug 16 16:02:20 2018 +0200
Remove this test, it just dumps the result instead of assert on that
Change-Id: Id9976d98bbd30cb38cee86b1ff45b96922065d11
diff --git a/test/TileCacheTests.cpp b/test/TileCacheTests.cpp
index dd6fb9714..afff54f55 100644
--- a/test/TileCacheTests.cpp
+++ b/test/TileCacheTests.cpp
@@ -58,7 +58,6 @@ class TileCacheTests : public CPPUNIT_NS::TestFixture
CPPUNIT_TEST(testSimple);
CPPUNIT_TEST(testSimpleCombine);
- CPPUNIT_TEST(testPerformance);
CPPUNIT_TEST(testCancelTiles);
// unstable
// CPPUNIT_TEST(testCancelTilesMultiView);
@@ -84,7 +83,6 @@ class TileCacheTests : public CPPUNIT_NS::TestFixture
void testSimple();
void testSimpleCombine();
- void testPerformance();
void testCancelTiles();
void testCancelTilesMultiView();
void testDisconnectMultiView();
@@ -235,31 +233,6 @@ void TileCacheTests::testSimpleCombine()
CPPUNIT_ASSERT_MESSAGE("did not receive a tile: message as expected", !tile2b.empty());
}
-void TileCacheTests::testPerformance()
-{
- std::shared_ptr<LOOLWebSocket> socket = loadDocAndGetSocket("hello.odt", _uri, "performance ");
-
- Poco::Timestamp timestamp;
- for (int x = 0; x < 5; ++x)
- {
- sendTextFrame(socket, "tilecombine part=0 width=256 height=256 tileposx=0,3840,7680,11520,0,3840,7680,11520 tileposy=0,0,0,0,3840,3840,3840,3840 tilewidth=3840 tileheight=3840");
- for (int i = 0; i < 8; ++i)
- {
- std::vector<char> tile = getResponseMessage(socket, "tile:", "tile-performance ");
- CPPUNIT_ASSERT_MESSAGE("did not receive a tile: message as expected", !tile.empty());
- }
- /// Send canceltiles message to clear tiles-on-fly list, otherwise wsd waits for tileprocessed messages
- sendTextFrame(socket, "canceltiles");
- }
-
- std::cerr << "Tile rendering roundtrip for 5 x 8 tiles combined: " << timestamp.elapsed() / 1000.
- << " ms. Per-tilecombine: " << timestamp.elapsed() / (1000. * 5)
- << " ms. Per-tile: " << timestamp.elapsed() / (1000. * 5 * 8) << "ms."
- << std::endl;
-
- socket->shutdown();
-}
-
void TileCacheTests::testCancelTiles()
{
const char* testName = "cancelTiles ";
More information about the Libreoffice-commits
mailing list