diff options
author | Daniel Burrows <dburrows@debian.org> | 2010-07-10 12:33:57 -0700 |
---|---|---|
committer | Daniel Burrows <dburrows@debian.org> | 2010-07-10 12:33:57 -0700 |
commit | f8dc90aedc7ef312a2da37cb7e93af7f49566468 (patch) | |
tree | c70ee1fc930a1d96866026d9e6c7378276636360 /tests | |
parent | 37917fa3270c5b0f690726537b5b121cf2269235 (diff) | |
download | aptitude-f8dc90aedc7ef312a2da37cb7e93af7f49566468.tar.gz |
Split the teletype mock's constructors into default/nice/strict variants too.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_teletype_mock.cc | 4 | ||||
-rw-r--r-- | tests/test_transient_message.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_teletype_mock.cc b/tests/test_teletype_mock.cc index 66a85b4c..bdcc9469 100644 --- a/tests/test_teletype_mock.cc +++ b/tests/test_teletype_mock.cc @@ -97,7 +97,7 @@ namespace term_locale(mocks::terminal_locale::create_strict()), term_metrics(mocks::terminal_metrics::create_strict()), term_output(mocks::terminal_with_combined_output::create_strict()), - teletype(mocks::create_teletype(term_locale, term_metrics, term_output)) + teletype(mocks::create_strict_teletype(term_locale, term_metrics, term_output)) { EXPECT_CALL(*term_locale, wcwidth(two_column_char)) .WillRepeatedly(Return(2)); @@ -347,7 +347,7 @@ TEST_F(TeletypeTest, TeletypeDoesNotBreakTerminalMock) shared_ptr<mocks::combining_terminal_output> real_term_output = mocks::combining_terminal_output::create_strict(); shared_ptr<mocks::teletype> teletype = - mocks::create_teletype(term_locale, term_metrics, real_term_output); + mocks::create_strict_teletype(term_locale, term_metrics, real_term_output); EXPECT_CALL(*term_metrics, get_screen_width()) .WillRepeatedly(Return(80)); diff --git a/tests/test_transient_message.cc b/tests/test_transient_message.cc index 2844854e..98ddbc1a 100644 --- a/tests/test_transient_message.cc +++ b/tests/test_transient_message.cc @@ -83,7 +83,7 @@ namespace : term_locale(mocks::terminal_locale::create_strict()), term_metrics(create_terminal_metrics()), term_output(create_terminal_output()), - teletype(mocks::create_teletype(term_locale, term_metrics, term_output)), + teletype(mocks::create_strict_teletype(term_locale, term_metrics, term_output)), message(create_transient_message(term_locale, term_metrics, term_output)), widechar(1, two_column_char) { |