diff options
author | aqua <aqua@iserlohn-fortress.net> | 2023-03-12 18:39:39 +0200 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2023-03-12 18:39:39 +0200 |
commit | fbc736463f2ca2f5dbf1b7c412f408245e61df97 (patch) | |
tree | 84a66eabc5e3be2191ae0d5d1e0ff33d05515b4a /devices/uart/unittest_uart_16550.cc | |
parent | Add unit tests for C drivers (diff) | |
download | kernel-fbc736463f2ca2f5dbf1b7c412f408245e61df97.tar.xz |
Revert VGA C driver
Diffstat (limited to 'devices/uart/unittest_uart_16550.cc')
-rw-r--r-- | devices/uart/unittest_uart_16550.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/devices/uart/unittest_uart_16550.cc b/devices/uart/unittest_uart_16550.cc index 560c6c0..16e7202 100644 --- a/devices/uart/unittest_uart_16550.cc +++ b/devices/uart/unittest_uart_16550.cc @@ -39,7 +39,7 @@ TEST_F(Uart16550, uart_thre) TEST_F(Uart16550, uart_putc) { - k::FILE f{k::COM1}; + k::FILE f{k::COM1, nullptr, nullptr, nullptr}; // set up expectations EXPECT_CALL(*mockPort, inb(k::COM1 + k::LineStatus)).Times(1).WillRepeatedly(Return(k::THRE)); @@ -50,7 +50,7 @@ TEST_F(Uart16550, uart_putc) TEST_F(Uart16550, uart_putc_newline) { - k::FILE f{k::COM1}; + k::FILE f{k::COM1, nullptr, nullptr, nullptr}; // set up expectations EXPECT_CALL(*mockPort, inb(k::COM1 + k::LineStatus)).Times(2).WillRepeatedly(Return(k::THRE)); @@ -62,7 +62,7 @@ TEST_F(Uart16550, uart_putc_newline) TEST_F(Uart16550, uart_puts) { - k::FILE f{k::COM1}; + k::FILE f{k::COM1, nullptr, nullptr, nullptr}; const char *string{"This is a test string to write over uart"}; const int length = (int)strlen(string); @@ -76,7 +76,7 @@ TEST_F(Uart16550, uart_puts) TEST_F(Uart16550, uart_puts_WithUnknownLength) { - k::FILE f{k::COM1}; + k::FILE f{k::COM1, nullptr, nullptr, nullptr}; const char *string{"This is a test string to write over uart"}; const int length = (int)strlen(string); @@ -90,7 +90,7 @@ TEST_F(Uart16550, uart_puts_WithUnknownLength) TEST_F(Uart16550, uart_puts_WithPartialLength) { - k::FILE f{k::COM1}; + k::FILE f{k::COM1, nullptr, nullptr, nullptr}; const char *string{"This is a test string to write over uart"}; const int length = (int)strlen(string); const int partial = 10; @@ -107,7 +107,7 @@ TEST_F(Uart16550, uart_puts_WithPartialLength) TEST_F(Uart16550, uart_flush) { - k::FILE f{k::COM1}; + k::FILE f{k::COM1, nullptr, nullptr, nullptr}; // set up expectations // no mock calls are expected |