webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
DownloadErrorTest Class Reference
Inheritance diagram for DownloadErrorTest:
DownloadTest Test

Public Types

enum  ExpectedError { NetworkError, DownloadCancelled, InvalidDestination, DestinationExists }
 
- Public Types inherited from DownloadTest
enum  DownloadEvent {
  Started, ReceivedResponse, CreatedDestination, ReceivedData,
  Failed, Finished
}
 
- Public Types inherited from Test
enum  ResourcesDir { WebKit2GTKResources, WebKit2Resources }
 

Public Member Functions

 MAKE_GLIB_TEST_FIXTURE (DownloadErrorTest)
 
 DownloadErrorTest ()
 
void receivedResponse (WebKitDownload *download)
 
void createdDestination (WebKitDownload *download, const char *destination)
 
void failed (WebKitDownload *download, GError *error)
 
void decideDestination (WebKitDownload *download, const gchar *suggestedFilename)
 
- Public Member Functions inherited from DownloadTest
 MAKE_GLIB_TEST_FIXTURE (DownloadTest)
 
 DownloadTest ()
 
 ~DownloadTest ()
 
virtual void started (WebKitDownload *download)
 
virtual void receivedData (WebKitDownload *download, guint64 dataLength)
 
virtual void finished (WebKitDownload *download)
 
GRefPtr< WebKitDownloaddownloadURIAndWaitUntilFinishes (const CString &requestURI)
 
void checkDestinationAndDeleteFile (WebKitDownload *download, const char *expectedName)
 
- Public Member Functions inherited from Test
 MAKE_GLIB_TEST_FIXTURE (Test)
 
 Test ()
 
 ~Test ()
 
virtual void initializeWebExtensions ()
 
void assertObjectIsDeletedWhenTestFinishes (GObject *object)
 
void addLogFatalFlag (unsigned flag)
 
void removeLogFatalFlag (unsigned flag)
 

Static Public Member Functions

static WebKitDownloadError expectedErrorToWebKitDownloadError (ExpectedError expected)
 
- Static Public Member Functions inherited from DownloadTest
static void receivedResponseCallback (WebKitDownload *download, GParamSpec *, DownloadTest *test)
 
static void createdDestinationCallback (WebKitDownload *download, const gchar *destination, DownloadTest *test)
 
static void receivedDataCallback (WebKitDownload *download, guint64 dataLength, DownloadTest *test)
 
static void finishedCallback (WebKitDownload *download, DownloadTest *test)
 
static void failedCallback (WebKitDownload *download, GError *error, DownloadTest *test)
 
static gboolean decideDestinationCallback (WebKitDownload *download, const gchar *suggestedFilename, DownloadTest *test)
 
static void downloadStartedCallback (WebKitWebContext *context, WebKitDownload *download, DownloadTest *test)
 
- Static Public Member Functions inherited from Test
static const char * dataDirectory ()
 
static void initializeWebExtensionsCallback (WebKitWebContext *context, Test *test)
 
static void objectFinalized (Test *test, GObject *finalizedObject)
 
static CString getResourcesDir (ResourcesDir resourcesDir=WebKit2GTKResources)
 
static bool cairoSurfacesEqual (cairo_surface_t *s1, cairo_surface_t *s2)
 

Public Attributes

ExpectedError m_expectedError
 
- Public Attributes inherited from DownloadTest
GMainLoopm_mainLoop
 
Vector< DownloadEventm_downloadEvents
 
guint64 m_downloadSize
 
bool m_allowOverwrite
 
- Public Attributes inherited from Test
const char * name
 
bool(* func )(FileTest *t, BN_CTX *ctx)
 
HashSet< GObject * > m_watchedObjects
 
GRefPtr< WebKitWebContextm_webContext
 

Additional Inherited Members

- Static Public Attributes inherited from Test
static uint32_t s_webExtensionID = 0
 

Member Enumeration Documentation

◆ ExpectedError

Enumerator
NetworkError 
DownloadCancelled 
InvalidDestination 
DestinationExists 

Constructor & Destructor Documentation

◆ DownloadErrorTest()

DownloadErrorTest::DownloadErrorTest ( )
inline

Member Function Documentation

◆ createdDestination()

void DownloadErrorTest::createdDestination ( WebKitDownload download,
const char *  destination 
)
inlinevirtual

Reimplemented from DownloadTest.

◆ decideDestination()

void DownloadErrorTest::decideDestination ( WebKitDownload download,
const gchar suggestedFilename 
)
inlinevirtual

Reimplemented from DownloadTest.

◆ expectedErrorToWebKitDownloadError()

static WebKitDownloadError DownloadErrorTest::expectedErrorToWebKitDownloadError ( ExpectedError  expected)
inlinestatic

◆ failed()

void DownloadErrorTest::failed ( WebKitDownload download,
GError *  error 
)
inlinevirtual

Reimplemented from DownloadTest.

◆ MAKE_GLIB_TEST_FIXTURE()

DownloadErrorTest::MAKE_GLIB_TEST_FIXTURE ( DownloadErrorTest  )

◆ receivedResponse()

void DownloadErrorTest::receivedResponse ( WebKitDownload download)
inlinevirtual

Reimplemented from DownloadTest.

Member Data Documentation

◆ m_expectedError

ExpectedError DownloadErrorTest::m_expectedError

The documentation for this class was generated from the following file: