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

Unified Diff: components/autofill/content/browser/wallet/wallet_client_unittest.cc

Issue 17127002: Correctly integrate StoragePartition into TestingProfile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix InstantNTP test. Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/content/browser/wallet/wallet_client_unittest.cc
diff --git a/components/autofill/content/browser/wallet/wallet_client_unittest.cc b/components/autofill/content/browser/wallet/wallet_client_unittest.cc
index 6536c3e39a52772f38d928f716dde49bae655b37..9360b950391c228adc419a00837ab0dde5d0686c 100644
--- a/components/autofill/content/browser/wallet/wallet_client_unittest.cc
+++ b/components/autofill/content/browser/wallet/wallet_client_unittest.cc
@@ -20,7 +20,7 @@
#include "components/autofill/core/browser/autofill_metrics.h"
#include "components/autofill/core/common/autocheckout_status.h"
#include "content/public/test/test_browser_context.h"
-#include "content/public/test/test_browser_thread.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "net/base/escape.h"
#include "net/base/net_errors.h"
#include "net/http/http_request_headers.h"
@@ -658,8 +658,6 @@ class MockWalletClientDelegate : public WalletClientDelegate {
class WalletClientTest : public testing::Test {
public:
- WalletClientTest() {}
-
virtual void SetUp() OVERRIDE {
wallet_client_.reset(
new WalletClient(browser_context_.GetRequestContext(), &delegate_));
@@ -772,6 +770,9 @@ class WalletClientTest : public testing::Test {
return clean_upload_data;
}
+ // The profile's request context must be released on the IO thread.
+ content::TestBrowserThreadBundle thread_bundle_;
+
net::TestURLFetcherFactory factory_;
};

Powered by Google App Engine
This is Rietveld 408576698