Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/widget/windows/tests/gtest/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 782 B image not shown  

Quelle  TestWinUtils.cpp   Sprache: C

 
/* 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/. */


#include "gtest/gtest.h"
#include "WinUtils.h"

using namespace mozilla;
using namespace mozilla::widget;

static LayoutDeviceIntRegion GetTestRegion() {
  LayoutDeviceIntRegion region;
  region.OrWith(LayoutDeviceIntRect(0, 0, 10, 10));
  region.OrWith(LayoutDeviceIntRect(15, 15, 50, 50));
  return region;
}

TEST(WinUtils, Regions)
{
  auto region = GetTestRegion();
  nsAutoRegion rgn(WinUtils::RegionToHRGN(region));
  ASSERT_NE(rgn, nullptr) << "Conversion should succeed";
  ASSERT_EQ(region, WinUtils::ConvertHRGNToRegion(rgn))
      << "Region should round-trip";
}

Messung V0.5
C=97 H=100 G=98

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.