| OLD | NEW |
| 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/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
| 6 #include "chrome/test/base/testing_profile.h" | 6 #include "chrome/test/base/testing_profile.h" |
| 7 #include "components/autofill/content/browser/wallet/encryption_escrow_client.h" | 7 #include "components/autofill/content/browser/wallet/encryption_escrow_client.h" |
| 8 #include "components/autofill/content/browser/wallet/encryption_escrow_client_ob
server.h" | 8 #include "components/autofill/content/browser/wallet/encryption_escrow_client_ob
server.h" |
| 9 #include "components/autofill/content/browser/wallet/instrument.h" | 9 #include "components/autofill/content/browser/wallet/instrument.h" |
| 10 #include "components/autofill/content/browser/wallet/wallet_test_util.h" | 10 #include "components/autofill/content/browser/wallet/wallet_test_util.h" |
| 11 #include "content/public/test/test_browser_thread.h" | 11 #include "content/public/test/test_browser_thread.h" |
| 12 #include "googleurl/src/gurl.h" | |
| 13 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
| 14 #include "net/http/http_status_code.h" | 13 #include "net/http/http_status_code.h" |
| 15 #include "net/url_request/test_url_fetcher_factory.h" | 14 #include "net/url_request/test_url_fetcher_factory.h" |
| 16 #include "net/url_request/url_fetcher_delegate.h" | 15 #include "net/url_request/url_fetcher_delegate.h" |
| 17 #include "net/url_request/url_request_status.h" | 16 #include "net/url_request/url_request_status.h" |
| 18 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 20 | 19 |
| 21 namespace autofill { | 20 namespace autofill { |
| 22 namespace wallet { | 21 namespace wallet { |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 194 |
| 196 encryption_escrow_client_->EncryptOneTimePad(MakeOneTimePad()); | 195 encryption_escrow_client_->EncryptOneTimePad(MakeOneTimePad()); |
| 197 EXPECT_TRUE(encryption_escrow_client_->HasRequestInProgress()); | 196 EXPECT_TRUE(encryption_escrow_client_->HasRequestInProgress()); |
| 198 | 197 |
| 199 encryption_escrow_client_->CancelRequest(); | 198 encryption_escrow_client_->CancelRequest(); |
| 200 EXPECT_FALSE(encryption_escrow_client_->HasRequestInProgress()); | 199 EXPECT_FALSE(encryption_escrow_client_->HasRequestInProgress()); |
| 201 } | 200 } |
| 202 | 201 |
| 203 } // namespace wallet | 202 } // namespace wallet |
| 204 } // namespace autofill | 203 } // namespace autofill |
| OLD | NEW |