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

Unified Diff: content/browser/android/java/gin_java_method_invocation_helper_unittest.cc

Issue 629183002: Replacing the OVERRIDE with override and FINAL with final in content/browser/android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolving Error in android Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/android/java/gin_java_method_invocation_helper_unittest.cc
diff --git a/content/browser/android/java/gin_java_method_invocation_helper_unittest.cc b/content/browser/android/java/gin_java_method_invocation_helper_unittest.cc
index dab5d1a142e63eb5b108a2b7009f33aa8c355628..ccd508355bb23291ba7b1e1f97849f549621cb0a 100644
--- a/content/browser/android/java/gin_java_method_invocation_helper_unittest.cc
+++ b/content/browser/android/java/gin_java_method_invocation_helper_unittest.cc
@@ -21,26 +21,26 @@ class NullObjectDelegate
virtual ~NullObjectDelegate() {}
virtual base::android::ScopedJavaLocalRef<jobject> GetLocalRef(
- JNIEnv* env) OVERRIDE {
+ JNIEnv* env) override {
return base::android::ScopedJavaLocalRef<jobject>();
}
virtual base::android::ScopedJavaLocalRef<jclass> GetLocalClassRef(
- JNIEnv* env) OVERRIDE {
+ JNIEnv* env) override {
return base::android::ScopedJavaLocalRef<jclass>();
}
virtual const JavaMethod* FindMethod(const std::string& method_name,
- size_t num_parameters) OVERRIDE {
+ size_t num_parameters) override {
return NULL;
}
- virtual bool IsObjectGetClassMethod(const JavaMethod* method) OVERRIDE {
+ virtual bool IsObjectGetClassMethod(const JavaMethod* method) override {
return false;
}
virtual const base::android::JavaRef<jclass>& GetSafeAnnotationClass()
- OVERRIDE {
+ override {
return safe_annotation_class_;
}
@@ -58,7 +58,7 @@ class NullDispatcherDelegate
virtual ~NullDispatcherDelegate() {}
virtual JavaObjectWeakGlobalRef GetObjectWeakRef(
- GinJavaBoundObject::ObjectID object_id) OVERRIDE {
+ GinJavaBoundObject::ObjectID object_id) override {
return JavaObjectWeakGlobalRef();
}
@@ -80,7 +80,7 @@ class CountingDispatcherDelegate
virtual ~CountingDispatcherDelegate() {}
virtual JavaObjectWeakGlobalRef GetObjectWeakRef(
- GinJavaBoundObject::ObjectID object_id) OVERRIDE {
+ GinJavaBoundObject::ObjectID object_id) override {
counters_[object_id]++;
return JavaObjectWeakGlobalRef();
}
@@ -179,13 +179,13 @@ class ObjectIsGoneObjectDelegate : public NullObjectDelegate {
virtual ~ObjectIsGoneObjectDelegate() {}
virtual base::android::ScopedJavaLocalRef<jobject> GetLocalRef(
- JNIEnv* env) OVERRIDE {
+ JNIEnv* env) override {
get_local_ref_called_ = true;
return NullObjectDelegate::GetLocalRef(env);
}
virtual const JavaMethod* FindMethod(const std::string& method_name,
- size_t num_parameters) OVERRIDE {
+ size_t num_parameters) override {
return method_.get();
}
@@ -233,13 +233,13 @@ class MethodNotFoundObjectDelegate : public NullObjectDelegate {
virtual ~MethodNotFoundObjectDelegate() {}
virtual base::android::ScopedJavaLocalRef<jobject> GetLocalRef(
- JNIEnv* env) OVERRIDE {
+ JNIEnv* env) override {
return base::android::ScopedJavaLocalRef<jobject>(
env, static_cast<jobject>(env->FindClass("java/lang/String")));
}
virtual const JavaMethod* FindMethod(const std::string& method_name,
- size_t num_parameters) OVERRIDE {
+ size_t num_parameters) override {
find_method_called_ = true;
return NULL;
}
@@ -285,12 +285,12 @@ class GetClassObjectDelegate : public MethodNotFoundObjectDelegate {
virtual ~GetClassObjectDelegate() {}
virtual const JavaMethod* FindMethod(const std::string& method_name,
- size_t num_parameters) OVERRIDE {
+ size_t num_parameters) override {
find_method_called_ = true;
return kFakeGetClass;
}
- virtual bool IsObjectGetClassMethod(const JavaMethod* method) OVERRIDE {
+ virtual bool IsObjectGetClassMethod(const JavaMethod* method) override {
get_class_called_ = true;
return kFakeGetClass == method;
}
« no previous file with comments | « content/browser/android/java/gin_java_bridge_dispatcher_host.cc ('k') | content/browser/android/popup_touch_handle_drawable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698