- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 729 for sock (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/smb/DfsImplTest.java
@BeforeEach void setUp() throws IOException { // Mock the CIFSContext and its dependencies mockContext = mock(CIFSContext.class); mockConfig = mock(Configuration.class); mockCredentials = mock(Credentials.class); mockTransportPool = mock(SmbTransportPool.class); // Set up mock behaviors when(mockContext.getConfig()).thenReturn(mockConfig);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.5K bytes - Click Count (0) -
src/test/java/jcifs/http/NtlmServletTest.java
private TestNtlmServlet ntlmServlet; @Mock private ServletConfig servletConfig; @Mock private HttpServletRequest request; @Mock private HttpServletResponse response; @Mock private HttpSession session; @Mock private CIFSContext cifsContext; @Mock private Configuration configuration; @Mock private jcifs.SmbTransportPool transportPool;Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
@ExtendWith(MockitoExtension.class) class SmbFileOutputStreamTest { @Mock private SmbFile mockFile; @Mock private SmbTreeHandleImpl mockTreeHandle; @Mock private SmbFileHandleImpl mockFileHandle; @Mock private Configuration mockConfig; @Mock private Smb2WriteResponse mockWriteResponse; private SmbFileOutputStream outputStream;Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
@ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.LENIENT) class SmbResourceLocatorImplTest { @Mock private CIFSContext ctx; @Mock private Configuration config; @Mock private Credentials creds; @Mock private NameServiceClient nsc; // Minimal URLStreamHandler to allow creating smb:// URLs in testsCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
internal/bucket/bandwidth/measurement.go
func (m *bucketMeasurement) updateExponentialMovingAverage(endTime time.Time) { // Calculate aggregate avg bandwidth and exp window avg m.lock.Lock() defer func() { m.startTime = endTime m.lock.Unlock() }() if m.startTime.IsZero() { return } if endTime.Before(m.startTime) { return } duration := endTime.Sub(m.startTime)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sat Jun 03 20:41:51 GMT 2023 - 2.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java
}; public void testSchedule() { MockExecutor mock = new MockExecutor(); TestExecutor testExecutor = new TestExecutor(mock); Future<?> unused1 = testExecutor.schedule(DO_NOTHING, 10, MINUTES); mock.assertLastMethodCalled("scheduleRunnable", 10, MINUTES); Future<?> unused2 = testExecutor.schedule(callable(DO_NOTHING), 5, SECONDS); mock.assertLastMethodCalled("scheduleCallable", 5, SECONDS); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 7.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileInformationTest.java
} } } /** * Test mock implementation of FileInformation interface */ @Test @DisplayName("Test FileInformation interface mock implementation") void testFileInformationMockImplementation() { // Create mock FileInformation mockFileInfo = mock(FileInformation.class); // Define behaviorCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
docs/contribute/concurrency.md
### Locks We have 3 different things that we synchronize on. #### Http2Connection This lock guards internal state of each connection. This lock is never held for blocking operations. That means that we acquire the lock, read or write a few fields and release the lock. No I/O and no application-layer callbacks. #### Http2Stream
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Feb 06 16:35:36 GMT 2022 - 7K bytes - Click Count (0) -
src/test/java/jcifs/http/NetworkExplorerTest.java
private NetworkExplorer networkExplorer; @Mock private ServletConfig servletConfig; @Mock private ServletContext servletContext; @Mock private HttpServletRequest request; @Mock private HttpServletResponse response; @Mock private HttpSession session; @Mock private SmbFile smbFile; @Mock private SmbResourceLocator locator;Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 21.2K bytes - Click Count (0) -
internal/lru/lru.go
c.mu.Lock() bucketIdx := c.nextCleanupBucket timeToExpire := time.Until(c.buckets[bucketIdx].newestEntry) // wait for newest entry to expire before cleanup without holding lock if timeToExpire > 0 { c.mu.Unlock() time.Sleep(timeToExpire) c.mu.Lock() } for _, ent := range c.buckets[bucketIdx].entries { c.removeElement(ent) } c.nextCleanupBucket = (c.nextCleanupBucket + 1) % numBuckets
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Apr 25 08:22:26 GMT 2025 - 12.5K bytes - Click Count (0)