Patch removes Memory Sampler EWK interface and mocks it's implementation.
Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=9553
Reviewed by: Antonio Gomes, Janusz Majnert
Change-Id: I2ab75cd46034efb8c646e7eef0db369d926920c7
Signed-off-by: Tomasz Czekala <t.czekala@partner.samsung.com>
-// Copyright 2013 Samsung Electronics. All rights reserved.
+// Copyright 2013-2015 Samsung Electronics. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
void ewk_context_memory_sampler_start(Ewk_Context* context, double timerInterval)
{
- EINA_SAFETY_ON_NULL_RETURN(context);
- context->StartMemorySampler(timerInterval);
+ LOG_EWK_API_MOCKUP();
}
void ewk_context_memory_sampler_stop(Ewk_Context* context)
{
- EINA_SAFETY_ON_NULL_RETURN(context);
- context->StopMemorySampler();
+ LOG_EWK_API_MOCKUP();
}
Eina_Bool ewk_context_additional_plugin_path_set(Ewk_Context *context, const char *path)
-// Copyright 2013 Samsung Electronics. All rights reserved.
+// Copyright 2013-2015 Samsung Electronics. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
EAPI void ewk_context_mime_override_callback_set(Ewk_Context_Override_Mime_For_Url_Callback callback);
/**
- * start memory sampler.
+ * Deprecated, this function dose nothing, it's left to allow legacy applications to work with current builds
+ * Starts memory sampler.
*
* @param context context object
* @param interval time gap to fire the timer
-*/
-EAPI void ewk_context_memory_sampler_start(Ewk_Context* context, double timer_interval);
+ */
+EINA_DEPRECATED EAPI void ewk_context_memory_sampler_start(Ewk_Context* context, double timer_interval);
/**
-* stop memory sampler.
-*
-* @param context context object
-*/
-EAPI void ewk_context_memory_sampler_stop(Ewk_Context* context);
+ * Deprecated, this function dose nothing, it's left to allow legacy applications to work with current builds
+ * Stops memory sampler.
+ *
+ * @param context context object
+ */
+EINA_DEPRECATED EAPI void ewk_context_memory_sampler_stop(Ewk_Context* context);
/**
* @typedef Ewk_Vibration_Client_Vibrate_Cb Ewk_Vibration_Client_Vibrate_Cb
'utc_blink_ewk_context_inspector_server_stop_func.cpp',
'utc_blink_ewk_context_local_file_system_all_delete_func.cpp',
'utc_blink_ewk_context_local_file_system_delete_func.cpp',
- 'utc_blink_ewk_context_memory_sampler_start_func.cpp',
- 'utc_blink_ewk_context_memory_sampler_stop_func.cpp',
'utc_blink_ewk_context_menu.h',
'utc_blink_ewk_context_menu_item_append_as_action_func.cpp',
'utc_blink_ewk_context_menu_item_append_func.cpp',
+++ /dev/null
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "utc_blink_ewk_base.h"
-
-class utc_blink_ewk_context_memory_sampler_start: public utc_blink_ewk_base
-{
-};
-
-/**
- * @brief Checking whether memory sampler is started.
- */
-TEST_F(utc_blink_ewk_context_memory_sampler_start, POS_TEST)
-{
- ewk_context_memory_sampler_start(ewk_view_context_get(GetEwkWebView()), 1);
- ewk_context_memory_sampler_stop(ewk_view_context_get(GetEwkWebView()));
-
- utc_pass();
-}
-
-/**
- * @brief Checking whether function works properly in case of NULL of a context.
- */
-TEST_F(utc_blink_ewk_context_memory_sampler_start, NEG_TEST)
-{
- ewk_context_memory_sampler_start(NULL, 0);
-
- utc_pass();
-}
+++ /dev/null
-// Copyright 2013 Samsung Electronics. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "utc_blink_ewk_base.h"
-
-class utc_blink_ewk_context_memory_sampler_stop: public utc_blink_ewk_base
-{
-};
-
-/**
- * @brief Checking whether memory sampler is stopped.
- */
-TEST_F(utc_blink_ewk_context_memory_sampler_stop, POS_TEST)
-{
- ewk_context_memory_sampler_start(ewk_view_context_get(GetEwkWebView()), 1);
- ewk_context_memory_sampler_stop(ewk_view_context_get(GetEwkWebView()));
-
- utc_pass();
-}
-
-/**
- * @brief Checking whether function works properly in case of NULL of a context.
- */
-TEST_F(utc_blink_ewk_context_memory_sampler_stop, NEG_TEST)
-{
- ewk_context_memory_sampler_stop(NULL);
-
- utc_pass();
-}
-// Copyright 2014 Samsung Electronics. All rights reserved.
+// Copyright 2014-2015 Samsung Electronics. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
return favicon;
}
-void EWebContext::StartMemorySampler(double timerInterval) const {
- LOG(INFO) << "Memory Sampler deprecated";
-}
-
-void EWebContext::StopMemorySampler() const {
- LOG(INFO) << "Memory Sampler deprecated";
-}
-
void EWebContext::ClearCandidateData() {
#ifdef TIZEN_AUTOFILL_SUPPORT
WebDataServiceFactory* webDataServiceInstance = WebDataServiceFactory::GetInstance();
-// Copyright 2014 Samsung Electronics. All rights reserved.
+// Copyright 2014-2015 Samsung Electronics. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
void GetAllOriginsWithFileSystem(tizen_webview::Local_File_System_Origins_Get_Callback callback, void* user_data) const;
bool SetFaviconDatabasePath(const char *path);
Evas_Object *AddFaviconObject(const char *uri, Evas *canvas) const;
- void StartMemorySampler(double timerInterval) const;
- void StopMemorySampler() const;
void SendWidgetInfo(int widget_id, double scale, const std::string &theme, const std::string &encoded_bundle);
void SendWrtMessage(const tizen_webview::WrtIpcMessageData& message);
// Copyright (c) 2014 The Chromium Authors. All rights reserved.
-// Copyright 2014 Samsung Electronics. All rights reserved.
+// Copyright 2014-2015 Samsung Electronics. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
impl->ClearPasswordData();
}
-void WebContext::StartMemorySampler(double timerInterval) const {
- impl->StartMemorySampler(timerInterval);
-}
-
-void WebContext::StopMemorySampler() const {
- impl->StopMemorySampler();
-}
-
unsigned int WebContext::InspectorServerStart(unsigned int port) const {
return impl->InspectorServerStart(port);
}
// Copyright (c) 2014 The Chromium Authors. All rights reserved.
-// Copyright 2014 Samsung Electronics. All rights reserved.
+// Copyright 2014-2015 Samsung Electronics. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Password
void ClearPasswordData();
- // MemorySampler
- void StartMemorySampler(double timerInterval) const;
- void StopMemorySampler() const;
-
// Set MIME override callback
static void SetMimeOverrideCallback(Mime_Override_Callback callback);