Lines Matching defs:observer
64 // Create an observer for the command 2 and add it to the controller, then
66 FakeCommandObserver observer;
67 command_updater.AddCommandObserver(2, &observer);
69 EXPECT_TRUE(observer.enabled());
71 EXPECT_FALSE(observer.enabled());
73 // Remove the observer and update the command.
74 command_updater.RemoveCommandObserver(2, &observer);
76 EXPECT_FALSE(observer.enabled());
85 // removed observer still thinks all commands are true and the one left
100 // Remove one observer and update the command. Check the states, which