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

Side by Side Diff: components/password_manager/core/browser/affiliation_fetch_throttler_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, 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/affiliation_fetch_throttler.h " 5 #include "components/password_manager/core/browser/affiliation_fetch_throttler.h "
6 6
7 #include <stddef.h>
8 #include <stdint.h>
9
7 #include <cmath> 10 #include <cmath>
8 11
9 #include "base/callback.h" 12 #include "base/callback.h"
10 #include "base/macros.h" 13 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
13 #include "base/message_loop/message_loop.h" 16 #include "base/message_loop/message_loop.h"
14 #include "base/numerics/safe_math.h" 17 #include "base/numerics/safe_math.h"
15 #include "base/run_loop.h" 18 #include "base/run_loop.h"
16 #include "base/test/test_mock_time_task_runner.h" 19 #include "base/test/test_mock_time_task_runner.h"
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 ASSERT_NO_FATAL_FAILURE(AssertReleaseInBetween(true, 0, 0)); 414 ASSERT_NO_FATAL_FAILURE(AssertReleaseInBetween(true, 0, 0));
412 throttler->InformOfNetworkRequestComplete(false); 415 throttler->InformOfNetworkRequestComplete(false);
413 416
414 throttler->SignalNetworkRequestNeeded(); 417 throttler->SignalNetworkRequestNeeded();
415 throttler.reset(); 418 throttler.reset();
416 EXPECT_EQ(1u, GetPendingTaskCount()); 419 EXPECT_EQ(1u, GetPendingTaskCount());
417 AssertNoReleaseUntilNoTasksRemain(); 420 AssertNoReleaseUntilNoTasksRemain();
418 } 421 }
419 422
420 } // namespace password_manager 423 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698