| OLD | NEW |
| 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 "chrome/browser/interests/interests_fetcher.h" | 5 #include "chrome/browser/interests/interests_fetcher.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
| 13 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
| 14 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h" | 14 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h" |
| 15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
| 16 #include "net/http/http_status_code.h" | 16 #include "net/http/http_status_code.h" |
| 17 #include "net/url_request/test_url_fetcher_factory.h" | 17 #include "net/url_request/test_url_fetcher_factory.h" |
| 18 #include "net/url_request/url_request_status.h" | 18 #include "net/url_request/url_request_status.h" |
| 19 #include "net/url_request/url_request_test_util.h" | 19 #include "net/url_request/url_request_test_util.h" |
| 20 #include "testing/gmock/include/gmock/gmock-generated-function-mockers.h" | 20 #include "testing/gmock/include/gmock/gmock-generated-function-mockers.h" |
| 21 #include "testing/gmock/include/gmock/gmock-matchers.h" | 21 #include "testing/gmock/include/gmock/gmock-matchers.h" |
| 22 #include "testing/gmock/include/gmock/gmock-more-matchers.h" | 22 #include "testing/gmock/include/gmock/gmock-more-matchers.h" |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 RequestInterests(); | 197 RequestInterests(); |
| 198 | 198 |
| 199 EXPECT_CALL(*this, OnEmptyResponse()).Times(0); | 199 EXPECT_CALL(*this, OnEmptyResponse()).Times(0); |
| 200 IssueAccessTokens(); | 200 IssueAccessTokens(); |
| 201 SendAuthorizationError(); | 201 SendAuthorizationError(); |
| 202 | 202 |
| 203 EXPECT_CALL(*this, OnFailedResponse()); | 203 EXPECT_CALL(*this, OnFailedResponse()); |
| 204 IssueAccessTokens(); | 204 IssueAccessTokens(); |
| 205 SendAuthorizationError(); | 205 SendAuthorizationError(); |
| 206 } | 206 } |
| OLD | NEW |