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

Side by Side Diff: components/sync/driver/non_ui_data_type_controller_unittest.cc

Issue 2283373002: Remove unneeded scoped_refptr<>::get() on method binding (Closed)
Patch Set: Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/sync/driver/non_ui_data_type_controller.h" 5 #include "components/sync/driver/non_ui_data_type_controller.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 EXPECT_EQ(DataTypeController::RUNNING, non_ui_dtc_->state()); 478 EXPECT_EQ(DataTypeController::RUNNING, non_ui_dtc_->state());
479 479
480 testing::Mock::VerifyAndClearExpectations(&start_callback_); 480 testing::Mock::VerifyAndClearExpectations(&start_callback_);
481 EXPECT_CALL(model_load_callback_, Run(_, _)); 481 EXPECT_CALL(model_load_callback_, Run(_, _));
482 syncer::SyncError error(FROM_HERE, syncer::SyncError::DATATYPE_ERROR, "error", 482 syncer::SyncError error(FROM_HERE, syncer::SyncError::DATATYPE_ERROR, "error",
483 non_ui_dtc_->type()); 483 non_ui_dtc_->type());
484 backend_thread_.task_runner()->PostTask( 484 backend_thread_.task_runner()->PostTask(
485 FROM_HERE, 485 FROM_HERE,
486 base::Bind( 486 base::Bind(
487 &NonUIDataTypeControllerFake::OnSingleDataTypeUnrecoverableError, 487 &NonUIDataTypeControllerFake::OnSingleDataTypeUnrecoverableError,
488 non_ui_dtc_.get(), error)); 488 non_ui_dtc_, error));
489 WaitForDTC(); 489 WaitForDTC();
490 } 490 }
491 491
492 } // namespace 492 } // namespace
493 493
494 } // namespace sync_driver 494 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_impl.cc ('k') | content/browser/appcache/chrome_appcache_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698