Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2126)

Unified Diff: chrome/browser/media/native_desktop_media_list_unittest.cc

Issue 2045983004: Fix DrMemory test for NativeDesktopMediaListTest.UpdateThumbnail (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/valgrind/gtest_exclude/unit_tests.gtest-drmemory_win32.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/native_desktop_media_list_unittest.cc
diff --git a/chrome/browser/media/native_desktop_media_list_unittest.cc b/chrome/browser/media/native_desktop_media_list_unittest.cc
index 98c4a11f0881d89993deb4786027ef67a4bc275d..8cde654ef8714a6decae4ca604de2e1f9a42b149 100644
--- a/chrome/browser/media/native_desktop_media_list_unittest.cc
+++ b/chrome/browser/media/native_desktop_media_list_unittest.cc
@@ -481,6 +481,13 @@ TEST_F(NativeDesktopMediaListTest, UpdateTitle) {
TEST_F(NativeDesktopMediaListTest, UpdateThumbnail) {
AddWindowsAndVerify(true, kDefaultWindowCount, kDefaultAuraCount, false);
+ // Aura windows' thumbnails may unpredictably change over time.
+ for (size_t i = kDefaultWindowCount - kDefaultAuraCount;
+ i < kDefaultWindowCount; ++i) {
+ EXPECT_CALL(observer_, OnSourceThumbnailChanged(model_.get(), i + 1))
+ .Times(testing::AnyNumber());
+ }
+
EXPECT_CALL(observer_, OnSourceThumbnailChanged(model_.get(), 1))
.WillOnce(QuitMessageLoop(message_loop()));
« no previous file with comments | « no previous file | tools/valgrind/gtest_exclude/unit_tests.gtest-drmemory_win32.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698