[M120 Migration][MM] Support W3C EME
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / unittest / utc_blink_ewk_autofill_profile_id_get_func.cpp
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.
4
5 #include "utc_blink_ewk_base.h"
6 #include "ewk_autofill_profile.h"
7
8 class utc_blink_ewk_autofill_profile_id_get : public utc_blink_ewk_base
9 {
10 };
11
12 TEST_F(utc_blink_ewk_autofill_profile_id_get, NullArg)
13 {
14   ASSERT_EQ(0, ewk_autofill_profile_id_get(NULL));
15 }
16
17 TEST_F(utc_blink_ewk_autofill_profile_id_get, POS_TEST)
18 {
19   Ewk_Autofill_Profile* const m_profile0 = ewk_autofill_profile_new();
20   Ewk_Autofill_Profile* const m_profile1 = ewk_autofill_profile_new();
21
22   EXPECT_NE(ewk_autofill_profile_id_get(m_profile0), ewk_autofill_profile_id_get(m_profile1));
23   EXPECT_NE(0, ewk_autofill_profile_id_get(m_profile1));
24
25   ewk_autofill_profile_delete(m_profile1);
26   ewk_autofill_profile_delete(m_profile0);
27 }