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

Unified Diff: chrome/browser/google_apis/base_operations_unittest.cc

Issue 15333013: Replace most of the occurrence of OperationRegistry with OperationRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/google_apis/base_operations_unittest.cc
diff --git a/chrome/browser/google_apis/base_operations_unittest.cc b/chrome/browser/google_apis/base_operations_unittest.cc
index 047e5c284b23ead6f1ba17a7849cb0d9b1140bea..05a721bb67614162ca6026dc56cb845c3e8231e1 100644
--- a/chrome/browser/google_apis/base_operations_unittest.cc
+++ b/chrome/browser/google_apis/base_operations_unittest.cc
@@ -23,9 +23,9 @@ const char kInvalidJsonString[] = "$$$";
class FakeGetDataOperation : public GetDataOperation {
public:
- explicit FakeGetDataOperation(OperationRegistry* registry,
+ explicit FakeGetDataOperation(OperationRunner* runner,
const GetDataCallback& callback)
- : GetDataOperation(registry, NULL, callback) {
+ : GetDataOperation(runner, NULL, callback) {
}
virtual ~FakeGetDataOperation() {
@@ -121,7 +121,7 @@ TEST_F(BaseOperationsTest, ParseInvalidJson) {
TEST_F(BaseOperationsTest, GetDataOperationParseValidResponse) {
FakeGetDataOperation* get_data_operation =
new FakeGetDataOperation(
- runner_->operation_registry(),
+ runner_.get(),
base::Bind(&BaseOperationsTest::GetDataCallback,
base::Unretained(this)));
get_data_operation->NotifyStart();
@@ -139,7 +139,7 @@ TEST_F(BaseOperationsTest, GetDataOperationParseValidResponse) {
TEST_F(BaseOperationsTest, GetDataOperationParseInvalidResponse) {
FakeGetDataOperation* get_data_operation =
new FakeGetDataOperation(
- runner_->operation_registry(),
+ runner_.get(),
base::Bind(&BaseOperationsTest::GetDataCallback,
base::Unretained(this)));
get_data_operation->NotifyStart();
« no previous file with comments | « chrome/browser/google_apis/base_operations_server_unittest.cc ('k') | chrome/browser/google_apis/drive_api_operations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698