X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcontent%2Fapp%2Fmojo%2Fmojo_browsertest.cc;h=b516107333f4f36104dc1a3170eddc998554d019;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=17b869b99444cce2bbfe53f242938ae1c637941f;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/content/app/mojo/mojo_browsertest.cc b/src/content/app/mojo/mojo_browsertest.cc index 17b869b..b516107 100644 --- a/src/content/app/mojo/mojo_browsertest.cc +++ b/src/content/app/mojo/mojo_browsertest.cc @@ -3,7 +3,7 @@ // found in the LICENSE file. #include "content/public/test/content_browser_test.h" -#include "mojo/application_manager/application_manager.h" +#include "mojo/public/c/system/core.h" #include "testing/gtest/include/gtest/gtest.h" namespace content { @@ -13,8 +13,10 @@ class MojoTest : public ContentBrowserTest { MojoTest() {} protected: - bool HasCreatedInstance() { - return mojo::ApplicationManager::TestAPI::HasCreatedInstance(); + bool IsMojoInitialized() { + // Check |MojoGetTimeTicksNow()| is accessible. + MojoGetTimeTicksNow(); + return true; } private: @@ -23,7 +25,7 @@ class MojoTest : public ContentBrowserTest { // Placeholder test to confirm we are initializing Mojo. IN_PROC_BROWSER_TEST_F(MojoTest, Init) { - EXPECT_TRUE(HasCreatedInstance()); + EXPECT_TRUE(IsMojoInitialized()); } } // namespace content