Ensure single newline at EOF for core files (#11310)
This commit is contained in:
		
							parent
							
								
									bbf0f65284
								
							
						
					
					
						commit
						1b7b72c0e9
					
				
					 40 changed files with 40 additions and 61 deletions
				
			
		| 
						 | 
				
			
			@ -14,10 +14,7 @@
 | 
			
		|||
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifndef TESTS_BASIC_CONFIG_H_
 | 
			
		||||
#define TESTS_BASIC_CONFIG_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#define MATRIX_ROWS 4
 | 
			
		||||
#define MATRIX_COLS 10
 | 
			
		||||
 | 
			
		||||
#endif /* TESTS_BASIC_CONFIG_H_ */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,4 +13,4 @@
 | 
			
		|||
# You should have received a copy of the GNU General Public License
 | 
			
		||||
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
 | 
			
		||||
CUSTOM_MATRIX=yes
 | 
			
		||||
CUSTOM_MATRIX=yes
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -68,4 +68,4 @@ TEST_F(Macro, PlayASimpleMacro) {
 | 
			
		|||
    EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport(KC_LSFT))).AT_TIME(210);
 | 
			
		||||
    EXPECT_CALL(driver, send_keyboard_mock(KeyboardReport())).AT_TIME(220);
 | 
			
		||||
    run_one_scan_loop();
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -71,4 +71,4 @@ bool KeyboardReportMatcher::MatchAndExplain(report_keyboard_t& report, MatchResu
 | 
			
		|||
 | 
			
		||||
void KeyboardReportMatcher::DescribeTo(::std::ostream* os) const { *os << "is equal to " << m_report; }
 | 
			
		||||
 | 
			
		||||
void KeyboardReportMatcher::DescribeNegationTo(::std::ostream* os) const { *os << "is not equal to " << m_report; }
 | 
			
		||||
void KeyboardReportMatcher::DescribeNegationTo(::std::ostream* os) const { *os << "is not equal to " << m_report; }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -36,4 +36,4 @@ private:
 | 
			
		|||
template<typename... Ts>
 | 
			
		||||
inline testing::Matcher<report_keyboard_t&> KeyboardReport(Ts... keys) {
 | 
			
		||||
    return testing::MakeMatcher(new KeyboardReportMatcher(std::vector<uint8_t>({keys...})));
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,8 +14,7 @@
 | 
			
		|||
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifndef TESTS_TEST_COMMON_TEST_DRIVER_H_
 | 
			
		||||
#define TESTS_TEST_COMMON_TEST_DRIVER_H_
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include "gmock/gmock.h"
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
| 
						 | 
				
			
			@ -28,7 +27,7 @@ public:
 | 
			
		|||
    TestDriver();
 | 
			
		||||
    ~TestDriver();
 | 
			
		||||
    void set_leds(uint8_t leds) { m_leds = leds; }
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    MOCK_METHOD1(send_keyboard_mock, void (report_keyboard_t&));
 | 
			
		||||
    MOCK_METHOD1(send_mouse_mock, void (report_mouse_t&));
 | 
			
		||||
    MOCK_METHOD1(send_system_mock, void (uint16_t));
 | 
			
		||||
| 
						 | 
				
			
			@ -43,6 +42,3 @@ private:
 | 
			
		|||
    uint8_t m_leds = 0;
 | 
			
		||||
    static TestDriver* m_this;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#endif /* TESTS_TEST_COMMON_TEST_DRIVER_H_ */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,7 +14,7 @@
 | 
			
		|||
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
 #pragma once
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include "gtest/gtest.h"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -27,4 +27,4 @@ public:
 | 
			
		|||
 | 
			
		||||
    void run_one_scan_loop();
 | 
			
		||||
    void idle_for(unsigned ms);
 | 
			
		||||
};
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue