summaryrefslogtreecommitdiffstats
path: root/chrome/browser/command_updater_unittest.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-20 23:32:54 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-20 23:32:54 +0000
commitf0df41f283e4844d0f7783771064f7588d66d311 (patch)
treec90c2fd8c2989013c3ac784e4bd1b7cacc7b5fa8 /chrome/browser/command_updater_unittest.cc
parentfa20b454b4436c41976868bfa20801c0ea311270 (diff)
downloadchromium_src-f0df41f283e4844d0f7783771064f7588d66d311.zip
chromium_src-f0df41f283e4844d0f7783771064f7588d66d311.tar.gz
chromium_src-f0df41f283e4844d0f7783771064f7588d66d311.tar.bz2
Remove unnecessary unit tests (now we're just using ObserverList).
TBR=pinkerton Review URL: http://codereview.chromium.org/18386 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8336 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/command_updater_unittest.cc')
-rw-r--r--chrome/browser/command_updater_unittest.cc24
1 files changed, 0 insertions, 24 deletions
diff --git a/chrome/browser/command_updater_unittest.cc b/chrome/browser/command_updater_unittest.cc
index 9100753..ce57014 100644
--- a/chrome/browser/command_updater_unittest.cc
+++ b/chrome/browser/command_updater_unittest.cc
@@ -73,27 +73,3 @@ TEST_F(CommandUpdaterTest, TestObservers) {
command_updater.UpdateCommandEnabled(2, true);
EXPECT_FALSE(observer.enabled());
}
-
-TEST_F(CommandUpdaterTest, TestRemoveObserverForUnsupportedCommand) {
- TestingCommandHandlerMock handler;
- CommandUpdater command_updater(&handler);
-
- // Test removing observers for commands that are unsupported
- TestingCommandObserverMock observer;
- command_updater.RemoveCommandObserver(3, &observer);
-}
-
-TEST_F(CommandUpdaterTest, TestAddingNullObserver) {
- TestingCommandHandlerMock handler;
- CommandUpdater command_updater(&handler);
-
- // Test adding/removing NULL observers
- command_updater.AddCommandObserver(4, NULL);
-}
-
-TEST_F(CommandUpdaterTest, TestRemovingNullObserver) {
- TestingCommandHandlerMock handler;
- CommandUpdater command_updater(&handler);
-
- command_updater.RemoveCommandObserver(4, NULL);
-}