1 // Copyright 2014 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "utc_blink_ewk_base.h"
7 #define URL ("http://google.com")
9 class utc_blink_cb_load_started : public utc_blink_ewk_base
12 void LoadStarted(Evas_Object* webview) override {
13 EventLoopStop(utc_blink_ewk_base::Success);
16 void LoadFinished(Evas_Object* webview) override {
17 EventLoopStop(utc_blink_ewk_base::Failure);
22 * @brief Tests "load,started" callback
24 TEST_F(utc_blink_cb_load_started, callback)
26 ASSERT_EQ(EINA_TRUE, ewk_view_url_set(GetEwkWebView(), URL));
27 EXPECT_EQ(utc_blink_ewk_base::Success, EventLoopStart());