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

Side by Side Diff: components/password_manager/core/browser/affiliation_fetcher_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 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/affiliation_fetcher.h" 5 #include "components/password_manager/core/browser/affiliation_fetcher.h"
6 6
7 #include "base/macros.h"
7 #include "base/test/null_task_runner.h" 8 #include "base/test/null_task_runner.h"
8 #include "components/password_manager/core/browser/affiliation_api.pb.h" 9 #include "components/password_manager/core/browser/affiliation_api.pb.h"
9 #include "net/url_request/test_url_fetcher_factory.h" 10 #include "net/url_request/test_url_fetcher_factory.h"
10 #include "net/url_request/url_request_test_util.h" 11 #include "net/url_request/url_request_test_util.h"
11 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 14
14 namespace password_manager { 15 namespace password_manager {
15 16
16 namespace { 17 namespace {
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 MockAffiliationFetcherDelegate mock_delegate; 326 MockAffiliationFetcherDelegate mock_delegate;
326 scoped_ptr<AffiliationFetcher> fetcher(AffiliationFetcher::Create( 327 scoped_ptr<AffiliationFetcher> fetcher(AffiliationFetcher::Create(
327 request_context_getter(), uris, &mock_delegate)); 328 request_context_getter(), uris, &mock_delegate));
328 fetcher->StartRequest(); 329 fetcher->StartRequest();
329 330
330 EXPECT_CALL(mock_delegate, OnFetchFailed()); 331 EXPECT_CALL(mock_delegate, OnFetchFailed());
331 ASSERT_NO_FATAL_FAILURE(SimulateNetworkError()); 332 ASSERT_NO_FATAL_FAILURE(SimulateNetworkError());
332 } 333 }
333 334
334 } // namespace password_manager 335 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698