mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-08-13 17:03:49 -04:00
29 lines
695 B
C#
29 lines
695 B
C#
|
using System;
|
|||
|
using KeePassLib.Serialization;
|
|||
|
using keepass2android.Io;
|
|||
|
|
|||
|
namespace Kp2aUnitTests
|
|||
|
{
|
|||
|
class TestCacheSupervisor: ICacheSupervisor
|
|||
|
{
|
|||
|
public bool CouldntOpenFromRemoteCalled { get; set; }
|
|||
|
public bool CouldntSaveToRemoteCalled { get; set; }
|
|||
|
public bool NotifyOpenFromLocalDueToConflictCalled { get; set; }
|
|||
|
|
|||
|
|
|||
|
public void CouldntSaveToRemote(IOConnectionInfo ioc, Exception e)
|
|||
|
{
|
|||
|
CouldntSaveToRemoteCalled = true;
|
|||
|
}
|
|||
|
|
|||
|
public void CouldntOpenFromRemote(IOConnectionInfo ioc, Exception ex)
|
|||
|
{
|
|||
|
CouldntOpenFromRemoteCalled = true;
|
|||
|
}
|
|||
|
|
|||
|
public void NotifyOpenFromLocalDueToConflict(IOConnectionInfo ioc)
|
|||
|
{
|
|||
|
NotifyOpenFromLocalDueToConflictCalled = true;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|