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

Side by Side Diff: content/browser/android/java/gin_java_method_invocation_helper_unittest.cc

Issue 336313018: [Android] Move content/browser/{renderer_host => android}/java/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698