diff options
Diffstat (limited to 'views/controls/progress_bar_unittest.cc')
-rw-r--r-- | views/controls/progress_bar_unittest.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/views/controls/progress_bar_unittest.cc b/views/controls/progress_bar_unittest.cc index 971b424..73524c7 100644 --- a/views/controls/progress_bar_unittest.cc +++ b/views/controls/progress_bar_unittest.cc @@ -22,6 +22,17 @@ TEST(ProgressBarTest, ProgressProperty) { EXPECT_EQ(62, progress); } +TEST(ProgressBarTest, AddProgressMethod) { + ProgressBar bar; + bar.SetProgress(10); + bar.AddProgress(22); + int progress = bar.GetProgress(); + EXPECT_EQ(32, progress); + bar.AddProgress(200); + progress = bar.GetProgress(); + EXPECT_EQ(100, progress); +} + TEST(ProgressBarTest, TooltipTextProperty) { ProgressBar bar; std::wstring tooltip = L"Some text"; |