Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/security/sandbox/common/test/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  SandboxTest.h   Sprache: C

 
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* 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 https://mozilla.org/MPL/2.0/. */

#ifndef mozilla_SandboxTest_h
#define mozilla_SandboxTest_h

#include "SandboxTestingParent.h"
#include "mozISandboxTest.h"
#include "mozilla/GfxMessageUtils.h"
#include "mozilla/MozPromise.h"
#include "GMPService.h"
#include "nsTArray.h"

#if !defined(MOZ_DEBUG) || !defined(ENABLE_TESTS)
#  error "This file should not be used outside of debug with tests"
#endif

namespace mozilla {

class SandboxTest : public mozISandboxTest {
 public:
  NS_DECL_THREADSAFE_ISUPPORTS
  NS_DECL_MOZISANDBOXTEST

  SandboxTest() : mSandboxTestingParents{nullptr} {};

  // We allow nsresult to be rejected with values:
  //  - NS_ERROR_FAILURE in obvious case of error
  //  - NS_OK in case of success to complete the code but missing process (GPU)
  using ProcessPromise =
      MozPromise<RefPtr<SandboxTestingParent>, nsresult, true>;

 private:
  virtual ~SandboxTest() = default;
  nsTArray<RefPtr<SandboxTestingParent>> mSandboxTestingParents;
  RefPtr<gmp::GMPContentParentCloseBlocker> mGMPContentParentWrapper;
#if defined(XP_WIN)
  bool mChromeDirExisted = false;
#endif
};

}  // namespace mozilla
#endif  // mozilla_SandboxTest_h

Messung V0.5
C=82 H=100 G=91

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

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