diff options
author | rockot <rockot@chromium.org> | 2015-08-22 16:41:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-22 23:41:36 +0000 |
commit | 0bfe154baad9ddfb1f0c6ecc7cace36e8f430e75 (patch) | |
tree | 10034145e76f1a37c0bb02e3288a299b2b84754c /extensions/browser/mojo | |
parent | 0eb6b59c463a0aa9dd01956b5542b8cf158e835a (diff) | |
download | chromium_src-0bfe154baad9ddfb1f0c6ecc7cace36e8f430e75.zip chromium_src-0bfe154baad9ddfb1f0c6ecc7cace36e8f430e75.tar.gz chromium_src-0bfe154baad9ddfb1f0c6ecc7cace36e8f430e75.tar.bz2 |
Update mojo sdk to rev c02a28868825edfa57ab77947b8cb15e741c5598
Re-land. Previously conflicted with another CL that landed
just before the roll.
BUG=None
TBR=jam@chromium.org,ben@chromium.org
TBR=mfoltz@chromium.org
TBR=mek@chromium.org
TBR=xhwang@chromium.org
TBR=shess@chromium.org
Review URL: https://codereview.chromium.org/1310103002
Cr-Commit-Position: refs/heads/master@{#344994}
Diffstat (limited to 'extensions/browser/mojo')
-rw-r--r-- | extensions/browser/mojo/stash_backend_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/browser/mojo/stash_backend_unittest.cc b/extensions/browser/mojo/stash_backend_unittest.cc index ae14208..be76bac 100644 --- a/extensions/browser/mojo/stash_backend_unittest.cc +++ b/extensions/browser/mojo/stash_backend_unittest.cc @@ -33,7 +33,7 @@ mojo::ScopedHandle CreateReadableHandle() { } // namespace -class StashServiceTest : public testing::Test, public mojo::ErrorHandler { +class StashServiceTest : public testing::Test { public: enum Event { EVENT_NONE, @@ -49,11 +49,11 @@ class StashServiceTest : public testing::Test, public mojo::ErrorHandler { stash_backend_.reset(new StashBackend(base::Bind( &StashServiceTest::OnHandleReadyToRead, base::Unretained(this)))); stash_backend_->BindToRequest(mojo::GetProxy(&stash_service_)); - stash_service_.set_error_handler(this); + stash_service_.set_connection_error_handler(base::Bind(&OnConnectionError)); handles_ready_ = 0; } - void OnConnectionError() override { FAIL() << "Unexpected connection error"; } + static void OnConnectionError() { FAIL() << "Unexpected connection error"; } mojo::Array<StashedObjectPtr> RetrieveStash() { mojo::Array<StashedObjectPtr> stash; @@ -271,7 +271,7 @@ TEST_F(StashServiceTest, NotifyOncePerStashOnReadableHandles) { // exists. TEST_F(StashServiceTest, ServiceWithDeletedBackend) { stash_backend_.reset(); - stash_service_.set_error_handler(this); + stash_service_.set_connection_error_handler(base::Bind(&OnConnectionError)); mojo::Array<StashedObjectPtr> stashed_objects; StashedObjectPtr stashed_object(StashedObject::New()); |