• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diff --git a/base/observer_list_unittest.cc b/base/observer_list_unittest.cc
2index 1470b90..50d7e7e 100644
3--- a/base/observer_list_unittest.cc
4+++ b/base/observer_list_unittest.cc
5@@ -17,9 +17,11 @@
6 #include "base/run_loop.h"
7 #include "base/sequenced_task_runner.h"
8 #include "base/single_thread_task_runner.h"
9+#include "base/strings/string_piece.h"
10 #include "base/synchronization/waitable_event.h"
11-#include "base/task_scheduler/post_task.h"
12-#include "base/task_scheduler/task_scheduler.h"
13+// TaskScheduler not supported in libchrome
14+// #include "base/task_scheduler/post_task.h"
15+// #include "base/task_scheduler/task_scheduler.h"
16 #include "base/test/gtest_util.h"
17 #include "base/test/scoped_task_environment.h"
18 #include "base/threading/platform_thread.h"
19@@ -690,6 +692,8 @@ class SequenceVerificationObserver : public Foo {
20 }  // namespace
21
22 // Verify that observers are notified on the correct sequence.
23+// TaskScheduler not supported in libchrome
24+#if 0
25 TEST(ObserverListThreadSafeTest, NotificationOnValidSequence) {
26   test::ScopedTaskEnvironment scoped_task_environment;
27
28@@ -717,9 +721,12 @@ TEST(ObserverListThreadSafeTest, NotificationOnValidSequence) {
29   EXPECT_TRUE(observer_1.called_on_valid_sequence());
30   EXPECT_TRUE(observer_2.called_on_valid_sequence());
31 }
32+#endif
33
34 // Verify that when an observer is added to a NOTIFY_ALL ObserverListThreadSafe
35 // from a notification, it is itself notified.
36+// TaskScheduler not supported in libchrome
37+#if 0
38 TEST(ObserverListThreadSafeTest, AddObserverFromNotificationNotifyAll) {
39   test::ScopedTaskEnvironment scoped_task_environment;
40   auto observer_list = MakeRefCounted<ObserverListThreadSafe<Foo>>();
41@@ -737,6 +744,7 @@ TEST(ObserverListThreadSafeTest, AddObserverFromNotificationNotifyAll) {
42
43   EXPECT_EQ(1, observer_added_from_notification.GetValue());
44 }
45+#endif
46
47 namespace {
48
49@@ -769,6 +777,8 @@ class RemoveWhileNotificationIsRunningObserver : public Foo {
50
51 // Verify that there is no crash when an observer is removed while it is being
52 // notified.
53+// TaskScheduler not supported in libchrome
54+#if 0
55 TEST(ObserverListThreadSafeTest, RemoveWhileNotificationIsRunning) {
56   auto observer_list = MakeRefCounted<ObserverListThreadSafe<Foo>>();
57   RemoveWhileNotificationIsRunningObserver observer;
58@@ -793,6 +803,7 @@ TEST(ObserverListThreadSafeTest, RemoveWhileNotificationIsRunning) {
59
60   observer.Unblock();
61 }
62+#endif
63
64 TEST(ObserverListTest, Existing) {
65   ObserverList<Foo> observer_list(ObserverListPolicy::EXISTING_ONLY);
66