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

Unified Diff: chrome/browser/chromeos/gdata/gdata_operations_unittest.cc

Issue 10831122: gdata cleanup: stop passing Profile* around GData operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 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
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_operations.cc ('k') | chrome/browser/chromeos/gdata/operations_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_operations_unittest.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_operations_unittest.cc b/chrome/browser/chromeos/gdata/gdata_operations_unittest.cc
index 2d789360630c16d6bb22317093457467b4ce26fd..072437c5b8a8cf54ae646fb00bb5574678702649 100644
--- a/chrome/browser/chromeos/gdata/gdata_operations_unittest.cc
+++ b/chrome/browser/chromeos/gdata/gdata_operations_unittest.cc
@@ -20,9 +20,8 @@ namespace {
class JsonParseTestGetDataOperation : public GetDataOperation {
public:
JsonParseTestGetDataOperation(GDataOperationRegistry* registry,
- Profile* profile,
const GetDataCallback& callback)
- : GetDataOperation(registry, profile, callback) {
+ : GetDataOperation(registry, callback) {
}
virtual ~JsonParseTestGetDataOperation() {
@@ -86,9 +85,7 @@ TEST_F(GDataOperationsTest, GetDataOperationParseJson) {
&error,
&value);
JsonParseTestGetDataOperation* getData =
- new JsonParseTestGetDataOperation(runner_->operation_registry(),
- profile_.get(),
- cb);
+ new JsonParseTestGetDataOperation(runner_->operation_registry(), cb);
getData->NotifyStart();
// Parses a valid json string.
@@ -157,9 +154,7 @@ TEST_F(GDataOperationsTest, GetDataOperationParseInvalidJson) {
&error,
&value);
JsonParseTestGetDataOperation* getData =
- new JsonParseTestGetDataOperation(runner_->operation_registry(),
- profile_.get(),
- cb);
+ new JsonParseTestGetDataOperation(runner_->operation_registry(), cb);
getData->NotifyStart();
// Parses an invalid json string.
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_operations.cc ('k') | chrome/browser/chromeos/gdata/operations_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698