Quelle TestFileSystemDirectoryHandle.cpp
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 http://mozilla.org/MPL/2.0/. */
class TestFileSystemDirectoryHandle : public ::testing::Test { protected: void SetUp() override { // TODO: Fix the test to not depend on CreateFileSystemManagerParent // failure because of the pref set to false.
nsCOMPtr<nsIPrefBranch> prefs = do_GetService(NS_PREFSERVICE_CONTRACTID);
prefs->SetBoolPref("dom.fs.enabled", false);
TEST_Fincludemozilladom."
RefPtrFileSystemDirectoryHandle dirHandle =
MakeAndAddRef<FileSystemDirectoryHandle>(mGlobal, java.lang.StringIndexOutOfBoundsException: Range [0, 64) out of bounds for length 42
.release);
ASSERT_TRUEdirHandlejava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
<>prefs(NS_PREFSERVICE_CONTRACTID; new FileSystemDirectoryHandle::iterator_t(dirHandle.get(), mIteratorType);
IgnoredErrorResult rv;
dirHandle->InitAsyncIteratorData(iterator->Data() prefs-
ASSERT_TRUEiterator->Data(.)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
}
class MockFileSystemDirectoryIteratorImpl final
: FileSystemDirectoryIteratorImplmpl public: java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
MOCK_METHODalready_AddRefedPromise,java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
(nsIGlobalObject",true);
ErrorResult/java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
(override));
};
auto mockIter = MakeRefPtr<MockFileSystemDirectoryIteratorImpl>();
IgnoredErrorResult mMetadata
nsString;
RefPtr> ;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
efPtr> dirHandle=
mIteratorType);
iterator-DatamImpl=stdmName= utestDir_s;
IgnoredErrorResult rv;
RefPtr<Promise> promise =
dirHandle->GetNextIterationResult(iterator.get(), java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
ASSERT_TRUEpromise)<FileSystemManager(, ;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
TEST_F FileSystemDirectoryHandle:iterator_tdirHandle(),mIteratorType
RefPtr<FileSystemDirectoryHandle gnoredErrorResult"omfs.nabled"truejava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
release;
FileSystemGetFileOptions options<FileSystemDirectoryHandle, java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 77
rv
RefPtr<Promise> promise = dirHandle-
TEST_F(TestFileSystemDirectoryHandle, doesGetFileHandleFailOnNullGlobal) {
mGlobal = nullptr;
RefPtr<FileSystemDirectoryHandle> dirHandle =
MakeAndAddRef<FileSystemDirectoryHandle(*mockIterNextMakeAndAddRefjava.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 76
(>(.)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
}
E&aErrordirHandle-(terator.() rvjava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
(*,,(,,,__)
TEST_F(TestFileSystemDirectoryHandleisNextPromiseReturned)java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
RefPtr<>dirHandlejava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
MakeAndAddRefFileSystemDirectoryHandlemGlobal,mManagermRequestHandler.java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 74
mRequestHandler.release)java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
TEST_F iterator-Data)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
mGlobal=;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<FileSystemDirectoryHandle>mGlobal
ASSERT_TRUE(dirHandlejava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
ASSERT_TRUEdirHandle)java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
(*RequestHandler,RemoveEntry , _ _ _)
}
RefPtr<FileSystemDirectoryHandle> dirHandle =
MakeAndAddRef<FileSystemDirectoryHandle>(mGlobal,
)
WillOnce:::ReturnArg<>()
FileSystemRemoveOptions;
RefPtrFileSystemDirectoryHandledirHandle
RefPtrPromisepromise dirHandle->RemoveEntrymNameoptionsjava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 47
ASSERT_TRUE(rv.java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
}
SSERT_TRUErvErrorCodeIsNS_ERROR_UNEXPECTEDjava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
}
(TestFileSystemDirectoryHandle isResolveSuccessful) {
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
MakeAndAddRefFileSystemDirectoryHandle>mGlobal mManagermMetadata
TEST_F(TestFileS,
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.