Unione di funzione/codec-immagini in funzione/decoder-h264 (catena della 0.3.0)
Porta nel decodificatore H.264 le regole senza componenti esterni, la sessione S4b e i codec di immagini di casa (C1), così la richiesta di unione di questo ramo contiene già tutta la catena. Conflitti risolti tenendo le due parti: in decisioni.md tutte le righe, prima quelle della catena e poi quelle del decodificatore; in docker.md, processo.md e Sviluppo.md né ffmpeg (uscito con questo ramo) né SkiaSharp (uscito con C1), con l'eccezione «da fare» delle prove di conformità; nelle prove di Febe.Tests entrambe le cartelle di file copiati e, nelle prove delle miniature, sia i video sia le immagini di riferimento. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
8bcc86e496
279 files changed
+25617
-816
No files matched your search
@@ -132,6 +132,33 @@ public sealed class RemoteViewStartTests
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[Timeout(30_000, CooperativeCancellation = true)]
|
||||
public async Task OnlyAViewClosedByItsPageIsToldToTheConnection()
|
||||
{
|
||||
// Docker (answer of 25 November 2026): a view closed by its page may be Alberto leaving the browser; one replaced
|
||||
// by another tab, one that did not start, or one closed because Febe stops is not.
|
||||
var ct = TestContext.CancellationToken;
|
||||
var told = 0;
|
||||
await using var bed = new Bed(attempt => attempt == 3 ? new CdpDisconnectedException("Il collegamento con il browser si è chiuso.") : null, viewClosed: () => Interlocked.Increment(ref told));
|
||||
|
||||
var older = await bed.Host.OpenAsync(ct);
|
||||
var newer = await bed.Host.OpenAsync(ct);
|
||||
Assert.AreEqual(RemoteViewEnd.Replaced, older.Ended);
|
||||
Assert.AreEqual(0, Volatile.Read(ref told), "replaced by another tab: Alberto is still at the browser");
|
||||
|
||||
await newer.DisposeAsync();
|
||||
Assert.AreEqual(1, Volatile.Read(ref told), "the page closed its view");
|
||||
|
||||
await Assert.ThrowsExactlyAsync<RemoteViewUnavailableException>(() => bed.Host.OpenAsync(ct));
|
||||
Assert.AreEqual(1, Volatile.Read(ref told), "a view that did not start was never the page's");
|
||||
|
||||
var last = await bed.Host.OpenAsync(ct);
|
||||
await bed.Host.ShutdownAsync();
|
||||
Assert.AreEqual(RemoteViewEnd.ShuttingDown, last.Ended);
|
||||
Assert.AreEqual(1, Volatile.Read(ref told), "Febe stopping is not Alberto leaving");
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[Timeout(30_000, CooperativeCancellation = true)]
|
||||
public async Task PaginaInizialeOpensTheStartPageOfTheMoment()
|
||||
@@ -300,7 +327,8 @@ public sealed class RemoteViewStartTests
|
||||
/// tested in BrowserStartPageTests); null: nowhere.
|
||||
/// </param>
|
||||
/// <param name="open">What «Pagina iniziale» does instead (it wins over <paramref name="startPage"/>).</param>
|
||||
public Bed(Func<int, Exception?> startFailure, Func<string>? startPage = null, Func<CancellationToken, Task>? open = null)
|
||||
/// <param name="viewClosed">What the connection is told when a view is closed by its page.</param>
|
||||
public Bed(Func<int, Exception?> startFailure, Func<string>? startPage = null, Func<CancellationToken, Task>? open = null, Action? viewClosed = null)
|
||||
{
|
||||
Clock = new VirtualClock();
|
||||
_start = Clock.Now;
|
||||
@@ -326,7 +354,7 @@ public sealed class RemoteViewStartTests
|
||||
};
|
||||
Browser = new PageBrowser(Cdp);
|
||||
_log = new FebeLog(null, null, Clock);
|
||||
Host = new BrowserRemoteViewHost(Browser, new BrowserUseTracker(), Clock, _log, browserClock: Clock, openStartPage: open ?? (startPage is null ? null : async ct => await Cdp.NavigateAsync(startPage(), ct)))
|
||||
Host = new BrowserRemoteViewHost(Browser, new BrowserUseTracker(), Clock, _log, browserClock: Clock, openStartPage: open ?? (startPage is null ? null : async ct => await Cdp.NavigateAsync(startPage(), ct)), viewClosed: viewClosed)
|
||||
{
|
||||
// The virtual clock moves only in the pauses: a watchdog on it would never wait.
|
||||
Watchdog = null,
|
||||
|
||||
Reference in new issue
Block a user