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

Side by Side Diff: chrome/browser/command_updater_unittest.cc

Issue 42155: Remove logging.h from cc files that don't use it. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/watchdog_unittest.cc ('k') | chrome/browser/download/download_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/logging.h"
6 #include "chrome/browser/command_updater.h" 5 #include "chrome/browser/command_updater.h"
7 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
8 7
9 class TestingCommandHandlerMock 8 class TestingCommandHandlerMock
10 : public CommandUpdater::CommandUpdaterDelegate { 9 : public CommandUpdater::CommandUpdaterDelegate {
11 public: 10 public:
12 virtual void ExecuteCommand(int id) { 11 virtual void ExecuteCommand(int id) {
13 EXPECT_EQ(1, id); 12 EXPECT_EQ(1, id);
14 } 13 }
15 }; 14 };
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 98
100 // Remove one observer and update the command. Check the states, which 99 // Remove one observer and update the command. Check the states, which
101 // should be different. 100 // should be different.
102 command_updater.RemoveCommandObserver(&observer_remove); 101 command_updater.RemoveCommandObserver(&observer_remove);
103 command_updater.UpdateCommandEnabled(1, false); 102 command_updater.UpdateCommandEnabled(1, false);
104 command_updater.UpdateCommandEnabled(2, false); 103 command_updater.UpdateCommandEnabled(2, false);
105 command_updater.UpdateCommandEnabled(3, false); 104 command_updater.UpdateCommandEnabled(3, false);
106 EXPECT_TRUE(observer_remove.enabled()); 105 EXPECT_TRUE(observer_remove.enabled());
107 EXPECT_FALSE(observer_keep.enabled()); 106 EXPECT_FALSE(observer_keep.enabled());
108 } 107 }
OLDNEW
« no previous file with comments | « base/watchdog_unittest.cc ('k') | chrome/browser/download/download_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698