summaryrefslogtreecommitdiffstats
path: root/extensions/browser/mojo
diff options
context:
space:
mode:
authorrockot <rockot@chromium.org>2015-08-24 10:24:19 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-24 17:24:56 +0000
commitb6a14b7a0263778a0f04a0c6999d6737f5ee2a0a (patch)
tree069b72b9890c254d29af2d0b10de7035505a7616 /extensions/browser/mojo
parent8bd9e806da07493c0fc48c8ff257a899281f1be5 (diff)
downloadchromium_src-b6a14b7a0263778a0f04a0c6999d6737f5ee2a0a.zip
chromium_src-b6a14b7a0263778a0f04a0c6999d6737f5ee2a0a.tar.gz
chromium_src-b6a14b7a0263778a0f04a0c6999d6737f5ee2a0a.tar.bz2
Update mojo sdk to rev c02a28868825edfa57ab77947b8cb15e741c5598
Re-land number two. Now with cherry-picked android test fix. 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/1311043003 Cr-Commit-Position: refs/heads/master@{#345106}
Diffstat (limited to 'extensions/browser/mojo')
-rw-r--r--extensions/browser/mojo/stash_backend_unittest.cc8
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());