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 class utc_blink_ewk_history_free : public utc_blink_ewk_base
10 void LoadFinished(Evas_Object*) override { EventLoopStop(Success); }
13 static const char* const TEST_URL;
16 const char* const utc_blink_ewk_history_free::TEST_URL = "ewk_history/page1.html";
18 TEST_F(utc_blink_ewk_history_free, EXISTING_HISTORY)
20 ASSERT_EQ(EINA_TRUE, ewk_view_url_set(GetEwkWebView(), GetResourceUrl(TEST_URL).c_str()));
21 ASSERT_EQ(Success, EventLoopStart());
23 Ewk_History *history = ewk_view_history_get(GetEwkWebView());
26 ewk_history_free(history);
29 TEST_F(utc_blink_ewk_history_free, EXISTING_EMPTY_HISTORY)
31 Ewk_History *history = ewk_view_history_get(GetEwkWebView());
34 ewk_history_free(history);
37 TEST_F(utc_blink_ewk_history_free, NULL_HISTORY)
39 ewk_history_free(NULL);