sync rostests to r44455
[reactos.git] / rostests / winetests / urlmon / url.c
index 53646d1..bd2d49b 100644 (file)
@@ -298,11 +298,11 @@ static HRESULT WINAPI Protocol_QueryInterface(IInternetProtocol *iface, REFIID r
 
     if(IsEqualGUID(&IID_IInternetPriority, riid)) {
         if(!is_urlmon_protocol(test_protocol))
-            return E_NOINTERFACE;
+    return E_NOINTERFACE;
 
         *ppv = &InternetPriority;
         return S_OK;
-    }
+}
 
     if(IsEqualGUID(&IID_IInternetProtocolEx, riid))
         return E_NOINTERFACE; /* TODO */
@@ -2651,9 +2651,9 @@ static void test_URLDownloadToFile(DWORD prot, BOOL emul)
             CHECK_CALLED(BeginningTransaction);
             if (have_IHttpNegotiate2)
             {
-                CHECK_CALLED(QueryInterface_IHttpNegotiate2);
-                CHECK_CALLED(GetRootSecurityId);
-            }
+            CHECK_CALLED(QueryInterface_IHttpNegotiate2);
+            CHECK_CALLED(GetRootSecurityId);
+        }
             CLEAR_CALLED(QueryInterface_IWindowForBindingUI);
         }
         if(test_protocol == FILE_TEST)
@@ -2871,55 +2871,55 @@ START_TEST(url)
     trace("test RegisterBindStatusCallback...\n");
     if(test_RegisterBindStatusCallback()) {
         trace("test BindToStorage failures...\n");
-        test_BindToStorage_fail();
+    test_BindToStorage_fail();
 
-        trace("synchronous http test (COM not initialised)...\n");
-        test_BindToStorage(HTTP_TEST, FALSE, TYMED_ISTREAM);
+    trace("synchronous http test (COM not initialised)...\n");
+    test_BindToStorage(HTTP_TEST, FALSE, TYMED_ISTREAM);
 
-        CoInitialize(NULL);
+    CoInitialize(NULL);
 
         trace("test StdURLMoniker...\n");
         test_StdURLMoniker();
 
-        trace("synchronous http test...\n");
-        test_BindToStorage(HTTP_TEST, FALSE, TYMED_ISTREAM);
+    trace("synchronous http test...\n");
+    test_BindToStorage(HTTP_TEST, FALSE, TYMED_ISTREAM);
 
-        trace("synchronous http test (to object)...\n");
-        test_BindToObject(HTTP_TEST, FALSE);
+    trace("synchronous http test (to object)...\n");
+    test_BindToObject(HTTP_TEST, FALSE);
 
-        trace("synchronous file test...\n");
-        test_BindToStorage(FILE_TEST, FALSE, TYMED_ISTREAM);
+    trace("synchronous file test...\n");
+    test_BindToStorage(FILE_TEST, FALSE, TYMED_ISTREAM);
 
-        trace("synchronous file test (to object)...\n");
-        test_BindToObject(FILE_TEST, FALSE);
+    trace("synchronous file test (to object)...\n");
+    test_BindToObject(FILE_TEST, FALSE);
 
-        bindf = BINDF_ASYNCHRONOUS | BINDF_ASYNCSTORAGE | BINDF_PULLDATA;
+    bindf = BINDF_ASYNCHRONOUS | BINDF_ASYNCSTORAGE | BINDF_PULLDATA;
 
-        trace("http test...\n");
-        test_BindToStorage(HTTP_TEST, FALSE, TYMED_ISTREAM);
+    trace("http test...\n");
+    test_BindToStorage(HTTP_TEST, FALSE, TYMED_ISTREAM);
 
-        trace("http test (to file)...\n");
-        test_BindToStorage(HTTP_TEST, FALSE, TYMED_FILE);
+    trace("http test (to file)...\n");
+    test_BindToStorage(HTTP_TEST, FALSE, TYMED_FILE);
 
-        trace("http test (to object)...\n");
-        test_BindToObject(HTTP_TEST, FALSE);
+    trace("http test (to object)...\n");
+    test_BindToObject(HTTP_TEST, FALSE);
 
-        trace("http test (short response)...\n");
-        http_is_first = TRUE;
-        urls[HTTP_TEST] = SHORT_RESPONSE_URL;
-        test_BindToStorage(HTTP_TEST, FALSE, TYMED_ISTREAM);
+    trace("http test (short response)...\n");
+    http_is_first = TRUE;
+    urls[HTTP_TEST] = SHORT_RESPONSE_URL;
+    test_BindToStorage(HTTP_TEST, FALSE, TYMED_ISTREAM);
 
-        trace("http test (short response, to object)...\n");
-        test_BindToObject(HTTP_TEST, FALSE);
+    trace("http test (short response, to object)...\n");
+    test_BindToObject(HTTP_TEST, FALSE);
 
-        trace("emulated http test...\n");
-        test_BindToStorage(HTTP_TEST, TRUE, TYMED_ISTREAM);
+    trace("emulated http test...\n");
+    test_BindToStorage(HTTP_TEST, TRUE, TYMED_ISTREAM);
 
-        trace("emulated http test (to object)...\n");
-        test_BindToObject(HTTP_TEST, TRUE);
+    trace("emulated http test (to object)...\n");
+    test_BindToObject(HTTP_TEST, TRUE);
 
-        trace("emulated http test (to file)...\n");
-        test_BindToStorage(HTTP_TEST, TRUE, TYMED_FILE);
+    trace("emulated http test (to file)...\n");
+    test_BindToStorage(HTTP_TEST, TRUE, TYMED_FILE);
 
         trace("asynchronous https test...\n");
         test_BindToStorage(HTTPS_TEST, FALSE, TYMED_ISTREAM);
@@ -2927,67 +2927,67 @@ START_TEST(url)
         trace("emulated https test...\n");
         test_BindToStorage(HTTPS_TEST, TRUE, TYMED_ISTREAM);
 
-        trace("about test...\n");
-        test_BindToStorage(ABOUT_TEST, FALSE, TYMED_ISTREAM);
+    trace("about test...\n");
+    test_BindToStorage(ABOUT_TEST, FALSE, TYMED_ISTREAM);
 
-        trace("about test (to file)...\n");
-        test_BindToStorage(ABOUT_TEST, FALSE, TYMED_FILE);
+    trace("about test (to file)...\n");
+    test_BindToStorage(ABOUT_TEST, FALSE, TYMED_FILE);
 
-        trace("about test (to object)...\n");
-        test_BindToObject(ABOUT_TEST, FALSE);
+    trace("about test (to object)...\n");
+    test_BindToObject(ABOUT_TEST, FALSE);
 
-        trace("emulated about test...\n");
-        test_BindToStorage(ABOUT_TEST, TRUE, TYMED_ISTREAM);
+    trace("emulated about test...\n");
+    test_BindToStorage(ABOUT_TEST, TRUE, TYMED_ISTREAM);
 
-        trace("emulated about test (to file)...\n");
-        test_BindToStorage(ABOUT_TEST, TRUE, TYMED_FILE);
+    trace("emulated about test (to file)...\n");
+    test_BindToStorage(ABOUT_TEST, TRUE, TYMED_FILE);
 
-        trace("emulated about test (to object)...\n");
-        test_BindToObject(ABOUT_TEST, TRUE);
+    trace("emulated about test (to object)...\n");
+    test_BindToObject(ABOUT_TEST, TRUE);
 
-        trace("file test...\n");
-        test_BindToStorage(FILE_TEST, FALSE, TYMED_ISTREAM);
+    trace("file test...\n");
+    test_BindToStorage(FILE_TEST, FALSE, TYMED_ISTREAM);
 
-        trace("file test (to file)...\n");
-        test_BindToStorage(FILE_TEST, FALSE, TYMED_FILE);
+    trace("file test (to file)...\n");
+    test_BindToStorage(FILE_TEST, FALSE, TYMED_FILE);
 
-        trace("file test (to object)...\n");
-        test_BindToObject(FILE_TEST, FALSE);
+    trace("file test (to object)...\n");
+    test_BindToObject(FILE_TEST, FALSE);
 
-        trace("emulated file test...\n");
-        test_BindToStorage(FILE_TEST, TRUE, TYMED_ISTREAM);
+    trace("emulated file test...\n");
+    test_BindToStorage(FILE_TEST, TRUE, TYMED_ISTREAM);
 
-        trace("emulated file test (to file)...\n");
-        test_BindToStorage(FILE_TEST, TRUE, TYMED_FILE);
+    trace("emulated file test (to file)...\n");
+    test_BindToStorage(FILE_TEST, TRUE, TYMED_FILE);
 
-        trace("emulated file test (to object)...\n");
-        test_BindToObject(FILE_TEST, TRUE);
+    trace("emulated file test (to object)...\n");
+    test_BindToObject(FILE_TEST, TRUE);
 
-        trace("emulated its test...\n");
-        test_BindToStorage(ITS_TEST, TRUE, TYMED_ISTREAM);
+    trace("emulated its test...\n");
+    test_BindToStorage(ITS_TEST, TRUE, TYMED_ISTREAM);
 
-        trace("emulated its test (to file)...\n");
-        test_BindToStorage(ITS_TEST, TRUE, TYMED_FILE);
+    trace("emulated its test (to file)...\n");
+    test_BindToStorage(ITS_TEST, TRUE, TYMED_FILE);
 
-        trace("emulated mk test...\n");
-        test_BindToStorage(MK_TEST, TRUE, TYMED_ISTREAM);
+    trace("emulated mk test...\n");
+    test_BindToStorage(MK_TEST, TRUE, TYMED_ISTREAM);
 
-        trace("test URLDownloadToFile for file protocol...\n");
-        test_URLDownloadToFile(FILE_TEST, FALSE);
+    trace("test URLDownloadToFile for file protocol...\n");
+    test_URLDownloadToFile(FILE_TEST, FALSE);
 
-        trace("test URLDownloadToFile for emulated file protocol...\n");
-        test_URLDownloadToFile(FILE_TEST, TRUE);
+    trace("test URLDownloadToFile for emulated file protocol...\n");
+    test_URLDownloadToFile(FILE_TEST, TRUE);
 
-        trace("test URLDownloadToFile for http protocol...\n");
-        test_URLDownloadToFile(HTTP_TEST, FALSE);
+    trace("test URLDownloadToFile for http protocol...\n");
+    test_URLDownloadToFile(HTTP_TEST, FALSE);
 
         bindf |= BINDF_NOWRITECACHE;
 
         trace("ftp test...\n");
         test_BindToStorage(FTP_TEST, FALSE, TYMED_ISTREAM);
 
-        trace("test failures...\n");
-        test_BindToStorage_fail();
+    trace("test failures...\n");
+    test_BindToStorage_fail();
     }
 
     DeleteFileA(wszIndexHtmlA);