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.
7 #include "utc_blink_ewk_base.h"
9 #include "ewk_autofill_profile.h"
11 class utc_blink_ewk_autofill_profile_data_set : public utc_blink_ewk_base
14 utc_blink_ewk_autofill_profile_data_set()
16 m_profile = ewk_autofill_profile_new();
19 ~utc_blink_ewk_autofill_profile_data_set() override {
20 ewk_autofill_profile_delete(m_profile);
23 Ewk_Autofill_Profile* m_profile;
26 TEST_F(utc_blink_ewk_autofill_profile_data_set, POS_TEST)
28 ASSERT_TRUE(m_profile != NULL);
29 const std::string m_profileName("MyProfile");
31 ewk_autofill_profile_data_set(m_profile, EWK_PROFILE_NAME,
32 m_profileName.c_str());
34 const std::string result(ewk_autofill_profile_data_get(m_profile,
37 ASSERT_TRUE(result.compare(m_profileName) == 0);