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

Side by Side Diff: components/undo/undo_manager_test.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « components/undo/undo_manager.h ('k') | components/update_client/action.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/auto_reset.h" 5 #include "base/auto_reset.h"
6 #include "base/macros.h"
6 #include "components/undo/undo_manager.h" 7 #include "components/undo/undo_manager.h"
7 #include "components/undo/undo_manager_observer.h" 8 #include "components/undo/undo_manager_observer.h"
8 #include "components/undo/undo_operation.h" 9 #include "components/undo/undo_operation.h"
9 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
10 11
11 namespace { 12 namespace {
12 13
13 class TestUndoOperation; 14 class TestUndoOperation;
14 15
15 // TestUndoService ------------------------------------------------------------- 16 // TestUndoService -------------------------------------------------------------
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 undo_service.undo_manager_.Redo(); 257 undo_service.undo_manager_.Redo();
257 int callback_count_after_redo = observer.state_change_count(); 258 int callback_count_after_redo = observer.state_change_count();
258 EXPECT_GT(callback_count_after_redo, callback_count_after_undo); 259 EXPECT_GT(callback_count_after_redo, callback_count_after_undo);
259 260
260 undo_service.undo_manager_.RemoveObserver(&observer); 261 undo_service.undo_manager_.RemoveObserver(&observer);
261 undo_service.undo_manager_.Undo(); 262 undo_service.undo_manager_.Undo();
262 EXPECT_EQ(callback_count_after_redo, observer.state_change_count()); 263 EXPECT_EQ(callback_count_after_redo, observer.state_change_count());
263 } 264 }
264 265
265 } // namespace 266 } // namespace
OLDNEW
« no previous file with comments | « components/undo/undo_manager.h ('k') | components/update_client/action.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698