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

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: Remove IO thread, seems not needed. 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 9acce0eca9ab2635de118d4add4008b1da24915b..0150bd58b3b61dda368410e6af1b52bfb7f158f1 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 "googleurl/src/gurl.h"
#include "net/base/net_errors.h"
@@ -66,20 +66,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() {
@@ -111,9 +106,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