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

Side by Side Diff: chrome/browser/autofill/wallet/wallet_client_unittest.cc

Issue 12543010: Establish components/autofill and move some files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/json/json_reader.h" 5 #include "base/json/json_reader.h"
6 #include "base/json/json_writer.h" 6 #include "base/json/json_writer.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/autofill/wallet/cart.h" 12 #include "chrome/browser/autofill/wallet/cart.h"
13 #include "chrome/browser/autofill/wallet/full_wallet.h" 13 #include "chrome/browser/autofill/wallet/full_wallet.h"
14 #include "chrome/browser/autofill/wallet/instrument.h" 14 #include "chrome/browser/autofill/wallet/instrument.h"
15 #include "chrome/browser/autofill/wallet/wallet_client.h" 15 #include "chrome/browser/autofill/wallet/wallet_client.h"
16 #include "chrome/browser/autofill/wallet/wallet_client_observer.h" 16 #include "chrome/browser/autofill/wallet/wallet_client_observer.h"
17 #include "chrome/browser/autofill/wallet/wallet_items.h" 17 #include "chrome/browser/autofill/wallet/wallet_items.h"
18 #include "chrome/browser/autofill/wallet/wallet_test_util.h" 18 #include "chrome/browser/autofill/wallet/wallet_test_util.h"
19 #include "chrome/common/autofill/autocheckout_status.h"
20 #include "chrome/test/base/testing_profile.h" 19 #include "chrome/test/base/testing_profile.h"
20 #include "components/autofill/common/autocheckout_status.h"
21 #include "content/public/test/test_browser_thread.h" 21 #include "content/public/test/test_browser_thread.h"
22 #include "googleurl/src/gurl.h" 22 #include "googleurl/src/gurl.h"
23 #include "net/base/net_errors.h" 23 #include "net/base/net_errors.h"
24 #include "net/http/http_status_code.h" 24 #include "net/http/http_status_code.h"
25 #include "net/url_request/test_url_fetcher_factory.h" 25 #include "net/url_request/test_url_fetcher_factory.h"
26 #include "net/url_request/url_fetcher_delegate.h" 26 #include "net/url_request/url_fetcher_delegate.h"
27 #include "net/url_request/url_request_status.h" 27 #include "net/url_request/url_request_status.h"
28 #include "testing/gmock/include/gmock/gmock.h" 28 #include "testing/gmock/include/gmock/gmock.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 30
(...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1419 net::TestURLFetcher* fetcher = factory.GetFetcherByID(0); 1419 net::TestURLFetcher* fetcher = factory.GetFetcherByID(0);
1420 ASSERT_TRUE(fetcher); 1420 ASSERT_TRUE(fetcher);
1421 fetcher->set_response_code(net::HTTP_OK); 1421 fetcher->set_response_code(net::HTTP_OK);
1422 fetcher->SetResponseString(kGetWalletItemsValidResponse); 1422 fetcher->SetResponseString(kGetWalletItemsValidResponse);
1423 fetcher->delegate()->OnURLFetchComplete(fetcher); 1423 fetcher->delegate()->OnURLFetchComplete(fetcher);
1424 EXPECT_FALSE(wallet_client.HasRequestInProgress()); 1424 EXPECT_FALSE(wallet_client.HasRequestInProgress());
1425 } 1425 }
1426 1426
1427 } // namespace wallet 1427 } // namespace wallet
1428 } // namespace autofill 1428 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/autofill/wallet/wallet_client.h ('k') | chrome/browser/password_manager/password_form_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698