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

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

Issue 1895743007: Disable aura window capture unit tests in unix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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_linux.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 2b2c2c245069525b8be0c28916fc57288930b1d3..b469877c3dd13ff1fbd280633c2dbb943e35405d 100644
--- a/chrome/browser/media/native_desktop_media_list_unittest.cc
+++ b/chrome/browser/media/native_desktop_media_list_unittest.cc
@@ -34,7 +34,7 @@ using testing::DoAll;
namespace {
static const int kDefaultWindowCount = 2;
-#if defined(USE_AURA)
+#if defined(OS_WIN)
Sergey Ulanov 2016/04/20 20:58:14 it should be clear from the code why Aura tests ar
GeorgeZ 2016/04/20 21:38:33 Good point.
static const int kDefaultAuraCount = 1;
#else
static const int kDefaultAuraCount = 0;
@@ -186,7 +186,7 @@ class NativeDesktopMediaListTest : public views::ViewsTestBase {
std::unique_ptr<webrtc::WindowCapturer>(window_capturer_)));
// Set update period to reduce the time it takes to run tests.
- model_->SetUpdatePeriod(base::TimeDelta::FromMilliseconds(5));
+ model_->SetUpdatePeriod(base::TimeDelta::FromMilliseconds(20));
Sergey Ulanov 2016/04/20 20:58:14 Why change this period?
GeorgeZ 2016/04/20 21:38:33 Pleas see Comment 3 in https://bugs.chromium.org/p
}
void AddNativeWindow(int id) {
@@ -388,7 +388,7 @@ TEST_F(NativeDesktopMediaListTest, AddNativeWindow) {
EXPECT_EQ(model_->GetSource(index).id.id, index);
}
-#if defined(USE_AURA)
+#if defined(OS_WIN)
TEST_F(NativeDesktopMediaListTest, AddAuraWindow) {
AddWindowsAndVerify(true, kDefaultWindowCount, kDefaultAuraCount, false);
@@ -408,7 +408,7 @@ TEST_F(NativeDesktopMediaListTest, AddAuraWindow) {
EXPECT_EQ(model_->GetSource(index).id.aura_id,
native_aura_id_map_[native_id]);
}
-#endif // defined(USE_AURA)
+#endif // defined(OS_WIN)
TEST_F(NativeDesktopMediaListTest, RemoveNativeWindow) {
AddWindowsAndVerify(true, kDefaultWindowCount, kDefaultAuraCount, false);
@@ -423,7 +423,7 @@ TEST_F(NativeDesktopMediaListTest, RemoveNativeWindow) {
message_loop()->Run();
}
-#if defined(USE_AURA)
+#if defined(OS_WIN)
TEST_F(NativeDesktopMediaListTest, RemoveAuraWindow) {
AddWindowsAndVerify(true, kDefaultWindowCount, kDefaultAuraCount, false);
@@ -437,7 +437,7 @@ TEST_F(NativeDesktopMediaListTest, RemoveAuraWindow) {
message_loop()->Run();
}
-#endif // defined(USE_AURA)
+#endif // defined(OS_WIN)
TEST_F(NativeDesktopMediaListTest, RemoveAllWindows) {
AddWindowsAndVerify(true, kDefaultWindowCount, kDefaultAuraCount, false);
« no previous file with comments | « no previous file | tools/valgrind/gtest_exclude/unit_tests.gtest_linux.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698