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

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

Issue 17465003: Fix most tests in //components/autofill/content to not depend on //chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge LKGR Created 7 years, 6 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/encryption_escrow_client_unittest.cc
diff --git a/components/autofill/content/browser/wallet/encryption_escrow_client_unittest.cc b/components/autofill/content/browser/wallet/encryption_escrow_client_unittest.cc
index 470cc98549c4fd189abe4c4bbf4002592068b90f..82903c5b90c5708fbf0a63488be255c3e02dfad8 100644
--- a/components/autofill/content/browser/wallet/encryption_escrow_client_unittest.cc
+++ b/components/autofill/content/browser/wallet/encryption_escrow_client_unittest.cc
@@ -3,11 +3,11 @@
// found in the LICENSE file.
#include "base/memory/scoped_ptr.h"
-#include "chrome/test/base/testing_profile.h"
#include "components/autofill/content/browser/wallet/encryption_escrow_client.h"
#include "components/autofill/content/browser/wallet/encryption_escrow_client_observer.h"
#include "components/autofill/content/browser/wallet/instrument.h"
#include "components/autofill/content/browser/wallet/wallet_test_util.h"
+#include "content/public/test/test_browser_context.h"
#include "content/public/test/test_browser_thread.h"
#include "net/base/net_errors.h"
#include "net/http/http_status_code.h"
@@ -65,20 +65,15 @@ class TestEncryptionEscrowClient : public EncryptionEscrowClient {
class EncryptionEscrowClientTest : public testing::Test {
public:
EncryptionEscrowClientTest()
- : instrument_(GetTestInstrument()),
- io_thread_(content::BrowserThread::IO) {}
+ : instrument_(GetTestInstrument()) {}
virtual void SetUp() OVERRIDE {
- io_thread_.StartIOThread();
- profile_.CreateRequestContext();
encryption_escrow_client_.reset(new TestEncryptionEscrowClient(
- profile_.GetRequestContext(), &observer_));
+ browser_context_.GetRequestContext(), &observer_));
}
virtual void TearDown() OVERRIDE {
encryption_escrow_client_.reset();
- profile_.ResetRequestContext();
- io_thread_.Stop();
}
std::vector<uint8> MakeOneTimePad() {
@@ -110,9 +105,7 @@ class EncryptionEscrowClientTest : public testing::Test {
private:
- // The profile's request context must be released on the IO thread.
- content::TestBrowserThread io_thread_;
- TestingProfile profile_;
+ content::TestBrowserContext browser_context_;
net::TestURLFetcherFactory factory_;
};

Powered by Google App Engine
This is Rietveld 408576698