[M120 Migration][MM] Support W3C EME
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / unittest / utc_blink_ewk_context_certificate_file_set_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
7 class utc_blink_ewk_context_certificate_file_set: public utc_blink_ewk_base
8 {
9 };
10
11 /**
12  * @brief Setting certificate file.
13  */
14 TEST_F(utc_blink_ewk_context_certificate_file_set, POS_TEST)
15 {
16   bool result = ewk_context_certificate_file_set(
17       ewk_context_default_get(),
18       GetResourcePath("ewk_context/google-cert.pem").c_str());
19
20   utc_check_true(result);
21 }
22
23 TEST_F(utc_blink_ewk_context_certificate_file_set, NEG_TEST)
24 {
25   bool result = ewk_context_certificate_file_set(NULL, NULL);
26
27   utc_check_false(result);
28 }