| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "blimp/client/test/test_blimp_client_context_delegate.h" | 5 #include "blimp/client/test/test_blimp_client_context_delegate.h" |
| 6 | 6 |
| 7 #include "blimp/client/public/blimp_client_context_delegate.h" | 7 #include "blimp/client/public/blimp_client_context_delegate.h" |
| 8 | 8 |
| 9 namespace blimp { | 9 namespace blimp { |
| 10 namespace client { | 10 namespace client { |
| 11 | 11 |
| 12 TestBlimpClientContextDelegate::TestBlimpClientContextDelegate() | 12 TestBlimpClientContextDelegate::TestBlimpClientContextDelegate() |
| 13 : blimp_contents_with_last_attached_helpers_() {} | 13 : blimp_contents_with_last_attached_helpers_() {} |
| 14 | 14 |
| 15 TestBlimpClientContextDelegate::~TestBlimpClientContextDelegate() {} | 15 TestBlimpClientContextDelegate::~TestBlimpClientContextDelegate() {} |
| 16 | 16 |
| 17 void TestBlimpClientContextDelegate::AttachBlimpContentsHelpers( | 17 void TestBlimpClientContextDelegate::AttachBlimpContentsHelpers( |
| 18 BlimpContents* blimp_contents) { | 18 BlimpContents* blimp_contents) { |
| 19 blimp_contents_with_last_attached_helpers_ = blimp_contents; | 19 blimp_contents_with_last_attached_helpers_ = blimp_contents; |
| 20 } | 20 } |
| 21 | 21 |
| 22 BlimpContents* | 22 BlimpContents* |
| 23 TestBlimpClientContextDelegate::GetBlimpContentsWithLastAttachedHelpers() { | 23 TestBlimpClientContextDelegate::GetBlimpContentsWithLastAttachedHelpers() { |
| 24 return blimp_contents_with_last_attached_helpers_; | 24 return blimp_contents_with_last_attached_helpers_; |
| 25 } | 25 } |
| 26 | 26 |
| 27 #if defined(OS_ANDROID) |
| 28 base::android::ScopedJavaLocalRef<jobject> |
| 29 TestBlimpClientContextDelegate::GetJavaObject() { |
| 30 return base::android::ScopedJavaLocalRef<jobject>(); |
| 31 } |
| 32 |
| 33 #endif // defined(OS_ANDROID) |
| 27 } // namespace client | 34 } // namespace client |
| 28 } // namespace blimp | 35 } // namespace blimp |
| OLD | NEW |