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 static const char* TEST_URL = "http://www.google.com/";
9 class utc_blink_ewk_view_url_get : public utc_blink_ewk_base {
13 * @brief Checking whether url is properly set.
15 TEST_F(utc_blink_ewk_view_url_get, POS_TEST)
17 Eina_Bool result = ewk_view_url_set(GetEwkWebView(), TEST_URL);
22 const char* currentUrl = ewk_view_url_get(GetEwkWebView());
23 EXPECT_STREQ(currentUrl, TEST_URL);
27 * @brief Checking whether function works properly in case of NULL of a webview.
29 TEST_F(utc_blink_ewk_view_url_get, NEG_TEST)
31 const char* currentUrl = ewk_view_url_get(NULL);
32 EXPECT_EQ(currentUrl ? EINA_TRUE : EINA_FALSE, EINA_FALSE);