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

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: Fix compilation issue in interactive_ui_tests. 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..a4a0e5af42fc3f270e4517948eb2287480c898e0 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"
@@ -71,14 +71,12 @@ class EncryptionEscrowClientTest : public testing::Test {
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();
}
@@ -111,9 +109,8 @@ class EncryptionEscrowClientTest : public testing::Test {
private:
- // The profile's request context must be released on the IO thread.
content::TestBrowserThread io_thread_;
blundell 2013/06/19 15:34:52 Is this still needed?
Jói 2013/06/19 15:38:04 I'm not sure; let me test.
- TestingProfile profile_;
+ content::TestBrowserContext browser_context_;
net::TestURLFetcherFactory factory_;
};

Powered by Google App Engine
This is Rietveld 408576698