OLD | NEW |
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 "content/browser/renderer_host/java/gin_java_method_invocation_helper.h
" | 5 #include "content/browser/android/java/gin_java_method_invocation_helper.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "content/browser/renderer_host/java/jni_helper.h" | 8 #include "content/browser/android/java/jni_helper.h" |
9 #include "content/common/android/gin_java_bridge_value.h" | 9 #include "content/common/android/gin_java_bridge_value.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 class NullObjectDelegate | 16 class NullObjectDelegate |
17 : public GinJavaMethodInvocationHelper::ObjectDelegate { | 17 : public GinJavaMethodInvocationHelper::ObjectDelegate { |
18 public: | 18 public: |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 helper->Invoke(); | 330 helper->Invoke(); |
331 EXPECT_TRUE(object_delegate->find_method_called()); | 331 EXPECT_TRUE(object_delegate->find_method_called()); |
332 EXPECT_TRUE(object_delegate->get_class_called()); | 332 EXPECT_TRUE(object_delegate->get_class_called()); |
333 EXPECT_TRUE(helper->HoldsPrimitiveResult()); | 333 EXPECT_TRUE(helper->HoldsPrimitiveResult()); |
334 EXPECT_TRUE(helper->GetPrimitiveResult().empty()); | 334 EXPECT_TRUE(helper->GetPrimitiveResult().empty()); |
335 EXPECT_EQ(kGinJavaBridgeAccessToObjectGetClassIsBlocked, | 335 EXPECT_EQ(kGinJavaBridgeAccessToObjectGetClassIsBlocked, |
336 helper->GetInvocationError()); | 336 helper->GetInvocationError()); |
337 } | 337 } |
338 | 338 |
339 } // namespace content | 339 } // namespace content |
OLD | NEW |