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

Side by Side Diff: components/password_manager/core/browser/log_router_unittest.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/password_manager/core/browser/log_router.h" 5 #include "components/password_manager/core/browser/log_router.h"
6 6
7 #include "base/macros.h"
7 #include "components/password_manager/core/browser/log_receiver.h" 8 #include "components/password_manager/core/browser/log_receiver.h"
8 #include "components/password_manager/core/browser/stub_log_manager.h" 9 #include "components/password_manager/core/browser/stub_log_manager.h"
9 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
10 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
11 12
12 using testing::_; 13 using testing::_;
13 14
14 namespace password_manager { 15 namespace password_manager {
15 16
16 namespace { 17 namespace {
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 EXPECT_CALL(manager_, OnLogRouterAvailabilityChanged(false)).Times(0); 157 EXPECT_CALL(manager_, OnLogRouterAvailabilityChanged(false)).Times(0);
157 router.UnregisterReceiver(&receiver_); 158 router.UnregisterReceiver(&receiver_);
158 // Now unregister the 2nd reciever. The manager should hear about it. 159 // Now unregister the 2nd reciever. The manager should hear about it.
159 EXPECT_CALL(manager_, OnLogRouterAvailabilityChanged(false)); 160 EXPECT_CALL(manager_, OnLogRouterAvailabilityChanged(false));
160 router.UnregisterReceiver(&receiver2_); 161 router.UnregisterReceiver(&receiver2_);
161 // Now unregister the manager. 162 // Now unregister the manager.
162 router.UnregisterManager(&manager_); 163 router.UnregisterManager(&manager_);
163 } 164 }
164 165
165 } // namespace password_manager 166 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698