1 // Copyright 2016 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.
7 #include "ewk_value_product.h"
8 #include "utc_blink_ewk_base.h"
9 #include "utc_blink_ewk_value_compare.h"
11 class utc_blink_ewk_string_value : public utc_blink_ewk_base {};
13 TEST_F(utc_blink_ewk_string_value, POS_TEST) {
15 Ewk_Value v = ewk_value_string_new("");
16 EXPECT_EQ(ewk_value_type_get(v), ewk_value_string_type_get());
20 for (size_t i = 0; i < ArraySize(test_strings); ++i) {
21 v = ewk_value_string_new(test_strings[i]);
22 Eina_Stringshare* str = ewk_value_string_value_get(v);
23 ASSERT_TRUE(str != NULL);
24 EXPECT_STREQ((const char*)str, test_strings[i]);
25 eina_stringshare_del(str);