/external/guava/guava-tests/test/com/google/common/io/ |
D | CharSourceTest.java | 257 TestLogHandler logHandler = new TestLogHandler(); in testCopyExceptions() local 258 Closeables.logger.addHandler(logHandler); in testCopyExceptions() 262 assertTrue(logHandler.getStoredLogRecords().isEmpty()); in testCopyExceptions() 265 assertEquals((in == BROKEN_OPEN_SOURCE) ? 0 : 1, getAndResetRecords(logHandler)); in testCopyExceptions() 270 assertTrue(logHandler.getStoredLogRecords().isEmpty()); in testCopyExceptions() 273 assertEquals(1, getAndResetRecords(logHandler)); in testCopyExceptions() 279 assertTrue(getAndResetRecords(logHandler) <= 1); in testCopyExceptions() 283 Closeables.logger.removeHandler(logHandler); in testCopyExceptions() 313 private static int getAndResetRecords(TestLogHandler logHandler) { in getAndResetRecords() argument 314 int records = logHandler.getStoredLogRecords().size(); in getAndResetRecords() [all …]
|
D | ByteSourceTest.java | 333 TestLogHandler logHandler = new TestLogHandler(); in testCopyExceptions() local 334 Closeables.logger.addHandler(logHandler); in testCopyExceptions() 338 assertTrue(logHandler.getStoredLogRecords().isEmpty()); in testCopyExceptions() 341 assertEquals((in == BROKEN_OPEN_SOURCE) ? 0 : 1, getAndResetRecords(logHandler)); in testCopyExceptions() 346 assertTrue(logHandler.getStoredLogRecords().isEmpty()); in testCopyExceptions() 349 assertEquals(1, getAndResetRecords(logHandler)); in testCopyExceptions() 355 assertTrue(getAndResetRecords(logHandler) <= 1); in testCopyExceptions() 359 Closeables.logger.removeHandler(logHandler); in testCopyExceptions() 389 private static int getAndResetRecords(TestLogHandler logHandler) { in getAndResetRecords() argument 390 int records = logHandler.getStoredLogRecords().size(); in getAndResetRecords() [all …]
|
D | CloserTest.java | 294 TestLogHandler logHandler = new TestLogHandler(); in testLoggingSuppressor() local 296 Closeables.logger.addHandler(logHandler); in testLoggingSuppressor() 306 assertTrue(logHandler.getStoredLogRecords().isEmpty()); in testLoggingSuppressor() 310 assertEquals(2, logHandler.getStoredLogRecords().size()); in testLoggingSuppressor() 312 LogRecord record = logHandler.getStoredLogRecords().get(0); in testLoggingSuppressor() 315 record = logHandler.getStoredLogRecords().get(1); in testLoggingSuppressor() 318 Closeables.logger.removeHandler(logHandler); in testLoggingSuppressor()
|
/external/deqp-deps/glslang/StandAlone/ |
D | spirv-remap.cpp | 73 void logHandler(const std::string& str) { in logHandler() function 83 logHandler(std::string(" reading: ") + inFilename); in read() 116 logHandler(std::string(" writing: ") + outFile); in write() 326 spv::spirvbin_t::registerLogHandler(logHandler); in main()
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | ServiceManagerTest.java | 341 TestLogHandler logHandler = new TestLogHandler(); in testEmptyServiceManager() local 342 logger.addHandler(logHandler); in testEmptyServiceManager() 365 for (LogRecord record : logHandler.getStoredLogRecords()) { in testEmptyServiceManager() 433 TestLogHandler logHandler = new TestLogHandler(); in testPartiallyConstructedManager() local 434 logger.addHandler(logHandler); in testPartiallyConstructedManager() 443 assertEquals(0, logHandler.getStoredLogRecords().size()); in testPartiallyConstructedManager()
|
/external/deqp-deps/glslang/SPIRV/ |
D | SPVRemapper.h | 129 static void registerLogHandler(logfn_t handler) { logHandler = handler; } in registerLogHandler() 298 static logfn_t logHandler; variable
|
D | SPVRemapper.cpp | 52 spirvbin_t::logfn_t spirvbin_t::logHandler = [](const std::string&) { }; in __anon30c19a6c0202() member in spv::spirvbin_t 58 logHandler(std::string(indent, ' ') + txt); in msg()
|
/external/grpc-grpc-java/context/src/test/java/io/grpc/ |
D | ContextTest.java | 305 Handler logHandler = new Handler() { in exceptionOfExecutorDoesntThrow() local 325 logger.addHandler(logHandler); in exceptionOfExecutorDoesntThrow() 356 logger.removeHandler(logHandler); in exceptionOfExecutorDoesntThrow()
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheLoadingTest.java | 65 TestLogHandler logHandler; field in CacheLoadingTest 70 logHandler = new TestLogHandler(); in setUp() 71 LocalCache.logger.addHandler(logHandler); in setUp() 79 LocalCache.logger.removeHandler(logHandler); in tearDown() 83 List<LogRecord> logRecords = logHandler.getStoredLogRecords(); in popLoggedThrowable() 86 logHandler.clear(); in popLoggedThrowable() 91 assertTrue(logHandler.getStoredLogRecords().isEmpty()); in checkNothingLogged()
|
D | LocalCacheTest.java | 109 TestLogHandler logHandler; field in LocalCacheTest 114 logHandler = new TestLogHandler(); in setUp() 115 LocalCache.logger.addHandler(logHandler); in setUp() 121 LocalCache.logger.removeHandler(logHandler); in tearDown() 125 List<LogRecord> logRecords = logHandler.getStoredLogRecords(); in popLoggedThrowable() 128 logHandler.clear(); in popLoggedThrowable() 133 assertTrue(logHandler.getStoredLogRecords().isEmpty()); in checkNothingLogged()
|
/external/deqp-deps/glslang/ |
D | README-spirv-remap.txt | 83 static void registerLogHandler(logfn_t handler) { logHandler = handler; }
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | CallTest.java | 96 private TestLogHandler logHandler = new TestLogHandler(); field in CallTest 101 logger.addHandler(logHandler); in setUp() 107 logger.removeHandler(logHandler); in tearDown() 661 logHandler.take()); in exceptionThrownByOnResponseIsRedactedAndLogged()
|