Changeset 85660 in vbox
- Timestamp:
- Aug 10, 2020 11:29:43 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139787
- Location:
- trunk/src/VBox/GuestHost/DragAndDrop/testcase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/DragAndDrop/testcase/tstDnDPath.cpp
r85382 r85660 41 41 /* Actual rebasing. */ 42 42 { "old/foo", "old", "new", VINF_SUCCESS, "new/foo" }, 43 /* Note: DnDPathRebase intentionally does not do any path conversions. */ 44 #ifdef RT_OS_WINDOWS 43 45 { "old\\foo", "old", "new", VINF_SUCCESS, "new/foo" }, 44 46 { "\\totally\\different\\path\\foo", "/totally/different/path", "/totally/different/path", VINF_SUCCESS, "/totally/different/path/foo" }, 45 47 { "\\old\\path\\foo", "", "/new/root/", VINF_SUCCESS, "/new/root/old/path/foo" }, 46 48 { "\\\\old\\path\\\\foo", "", "/new/root/", VINF_SUCCESS, "/new/root/old/path\\\\foo" } 49 #else 50 { "old/foo", "old", "new", VINF_SUCCESS, "new/foo" }, 51 { "/totally/different/path/foo", "/totally/different/path", "/totally/different/path", VINF_SUCCESS, "/totally/different/path/foo" }, 52 { "/old/path/foo", "", "/new/root/", VINF_SUCCESS, "/new/root/old/path/foo" }, 53 { "//old/path//foo", "", "/new/root/", VINF_SUCCESS, "/new/root/old/path//foo" } 54 #endif 47 55 }; 48 56 -
trunk/src/VBox/GuestHost/DragAndDrop/testcase/tstDnDTransferList.cpp
r85535 r85660 112 112 RTStrPrintf(szPathTest, sizeof(szPathTest), "%s/foo", szPathWellKnownURI); 113 113 RTTEST_CHECK_RC(hTest, DnDTransferListAppendPath(&list, DNDTRANSFERLISTFMT_URI, szPathWellKnownURI, DNDTRANSFERLIST_FLAGS_NONE), VINF_SUCCESS); 114 RTTEST_CHECK_RC(hTest, DnDTransferListAppendPath(&list, DNDTRANSFERLISTFMT_URI, szPathTest, DNDTRANSFERLIST_FLAGS_NONE), VERR_ FILE_NOT_FOUND);114 RTTEST_CHECK_RC(hTest, DnDTransferListAppendPath(&list, DNDTRANSFERLISTFMT_URI, szPathTest, DNDTRANSFERLIST_FLAGS_NONE), VERR_PATH_NOT_FOUND); 115 115 RTTEST_CHECK_RC(hTest, DnDTransferListGetRootsEx(&list, DNDTRANSFERLISTFMT_NATIVE, "" /* pszBasePath */, "\n", &pszBuf, &cbBuf), VINF_SUCCESS); 116 116 RTTestPrintf(hTest, RTTESTLVL_DEBUG, "Roots (native):\n%s\n", pszBuf); … … 126 126 127 127 /* From URI data. */ 128 const char szURI[] = "file:///C:/Windows/System32/Boot/\r\n" 129 "file:///C:/Windows/System/\r\n"; 128 const char szURI[] = 129 #ifdef RT_OS_WINDOWS 130 "file:///C:/Windows/System32/Boot/\r\n" 131 "file:///C:/Windows/System/\r\n"; 132 #else 133 "file:///bin/\r\n" 134 "file:///usr/bin/\r\n"; 135 #endif 130 136 131 137 RTTEST_CHECK_RC(hTest, DnDTransferListAppendPathsFromBuffer(&list, DNDTRANSFERLISTFMT_URI, szURI, sizeof(szURI), "\r\n",
Note:
See TracChangeset
for help on using the changeset viewer.