| Index: examples/device_name/device_name.cc
|
| diff --git a/examples/device_name/device_name.cc b/examples/device_name/device_name.cc
|
| index eb219e9ee2b1342ed5bbc400402720e97efda7ba..2113e264210b023706f4fae1b980e337b2677ffc 100644
|
| --- a/examples/device_name/device_name.cc
|
| +++ b/examples/device_name/device_name.cc
|
| @@ -26,6 +26,7 @@
|
| #include "base/android/jni_string.h"
|
| #include "jni/DeviceName_jni.h"
|
| #include "mojo/public/c/system/main.h"
|
| +#include "mojo/public/cpp/system/core.h"
|
|
|
| namespace mojo {
|
|
|
| @@ -55,9 +56,18 @@ std::string GetApplicationClassName() {
|
| } // namespace mojo
|
|
|
| MojoResult MojoMain(MojoHandle shell_handle) {
|
| + // Call a Java function to demonstrate that the JNI was correctly set up.
|
| LOG(INFO) << "Device name: " << mojo::examples::GetDeviceName();
|
| +
|
| + // Call a function that uses the application context to demonstrate that it
|
| + // was properly set.
|
| LOG(INFO) << "Application class: "
|
| << mojo::examples::GetApplicationClassName();
|
| +
|
| + // Call a Mojo core function to demonstrate that the thunks were properly set.
|
| + MojoTimeTicks ticks = MojoGetTimeTicksNow();
|
| + LOG(INFO) << "Timeticks: " << ticks;
|
| +
|
| return MOJO_RESULT_OK;
|
| }
|
|
|
|
|