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

Unified Diff: chrome/browser/net/gaia/token_service_unittest.cc

Issue 3133031: Make TestingProfile use ScopedTempDir. (Closed)
Patch Set: trybots Created 10 years, 4 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: chrome/browser/net/gaia/token_service_unittest.cc
diff --git a/chrome/browser/net/gaia/token_service_unittest.cc b/chrome/browser/net/gaia/token_service_unittest.cc
index c560b616737a0a951293a251ab7021331d7c683d..b8291919e91b1fe0e29ed6158f1e687d3417890b 100644
--- a/chrome/browser/net/gaia/token_service_unittest.cc
+++ b/chrome/browser/net/gaia/token_service_unittest.cc
@@ -4,7 +4,6 @@
//
// This file defines a unit test for the profile's token service.
-#include "base/scoped_temp_dir.h"
#include "chrome/browser/net/gaia/token_service.h"
#include "chrome/browser/password_manager/encryptor.h"
#include "chrome/browser/webdata/web_data_service.h"
@@ -76,11 +75,9 @@ class TokenServiceTest : public testing::Test {
credentials_.token = "token";
credentials_.data = "data";
- ASSERT_TRUE(temp_.CreateUniqueTempDir());
ASSERT_TRUE(db_thread_.Start());
- // Testing profile responsible for deleting the temp dir.
- profile_.reset(new TestingProfile(temp_.Take()));
+ profile_.reset(new TestingProfile());
profile_->CreateWebDataService(false);
WaitForDBLoadCompletion();
@@ -128,7 +125,6 @@ class TokenServiceTest : public testing::Test {
TokenFailedTracker failure_tracker_;
GaiaAuthConsumer::ClientLoginResult credentials_;
scoped_ptr<TestingProfile> profile_;
- ScopedTempDir temp_;
};
TEST_F(TokenServiceTest, SanityCheck) {
« no previous file with comments | « chrome/browser/extensions/extension_process_manager_unittest.cc ('k') | chrome/browser/views/bookmark_bar_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698