-
Notifications
You must be signed in to change notification settings - Fork 17
Unit tests for the settings channel #146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unit tests for the settings channel #146
Conversation
bwikbs
commented
Jul 15, 2021
- TC is taken from the window port
- Divide the setting channel into two part (common / platform)
- Change the interface of setting channel
Signed-off-by: MuHong Byun <[email protected]>
5e7891d
to
fee84ca
Compare
Signed-off-by: MuHong Byun <[email protected]>
b81ebfd
to
fd3997d
Compare
This reverts commit fd3997d.
* Update flutter_tizen_engine_unittest (localization) * Rename file : settings_channel_device.cc -> settings_channel_tizen.cc settings_channel_stub.cc -> settings_channel_linux.cc Signed-off-by: MuHong Byun <[email protected]>
Signed-off-by: MuHong Byun <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
d28dac6
to
97ac287
Compare
#include "flutter/shell/platform/embedder/test_utils/proc_table_replacement.h" | ||
#include "flutter/shell/platform/tizen/flutter_tizen_engine.h" | ||
#include "flutter/shell/platform/tizen/testing/engine_modifier.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include "flutter/shell/platform/embedder/test_utils/proc_table_replacement.h" | |
#include "flutter/shell/platform/tizen/flutter_tizen_engine.h" | |
#include "flutter/shell/platform/tizen/testing/engine_modifier.h" | |
#include "flutter_tizen_engine.h" | |
#include "flutter/shell/platform/embedder/test_utils/proc_table_replacement.h" | |
#include "flutter/shell/platform/tizen/testing/engine_modifier.h" |
Signed-off-by: MuHong Byun <[email protected]>
97ac287
to
22c726c
Compare
#include <chrono> | ||
#include <ctime> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include <chrono> | |
#include <ctime> | |
#include <locale> |
#include <system/system_settings.h> | ||
#include "settings_channel.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include <system/system_settings.h> | |
#include "settings_channel.h" | |
#include "settings_channel.h" | |
#include <system/system_settings.h> |
@bbrto21 😕😕😕 |
😢 |
flutter_tizen_engine_unittest.cc #include <gtest/gtest.h>
#include "flutter/shell/platform/tizen/flutter_tizen_engine.h"
#include "flutter/shell/platform/embedder/test_utils/proc_table_replacement.h"
#include "flutter/shell/platform/tizen/testing/engine_modifier.h" flutter_tizen_texture_registrar_unittests.cc #include <gtest/gtest.h>
#include <iostream>
#include "flutter/shell/platform/tizen/flutter_tizen_texture_registrar.h"
#include "flutter/shell/platform/embedder/test_utils/proc_table_replacement.h"
#include "flutter/shell/platform/tizen/flutter_tizen_engine.h"
#include "flutter/shell/platform/tizen/testing/engine_modifier.h" settings_channel_tizen.cc #include "settings_channel.h"
#include <system/system_settings.h> @swift-kim @bbrto21 How about this? |
This is final version! #include "flutter/shell/platform/tizen/flutter_tizen_engine.h"
#include "flutter/shell/platform/embedder/test_utils/proc_table_replacement.h"
#include "flutter/shell/platform/tizen/testing/engine_modifier.h"
#include "gtest/gtest.h" flutter_tizen_texture_registrar_unittests.cc #include "flutter/shell/platform/tizen/flutter_tizen_texture_registrar.h"
#include <iostream>
#include "flutter/shell/platform/embedder/test_utils/proc_table_replacement.h"
#include "flutter/shell/platform/tizen/flutter_tizen_engine.h"
#include "flutter/shell/platform/tizen/testing/engine_modifier.h"
#include "gtest/gtest.h" settings_channel_tizen.cc #include "settings_channel.h"
#include <system/system_settings.h> |
@swift-kim Sorry! I just saw approval and missed the conversation. |
engine_->RunEngine(); | ||
|
||
EXPECT_TRUE(run_called); | ||
EXPECT_TRUE(update_locales_called); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, this test does not pass.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will pass at #147. For the next PR, only TC was added intentionally.
* Add setting channel unit test Signed-off-by: MuHong Byun <[email protected]> * Add localization_channel unit test Signed-off-by: MuHong Byun <[email protected]> * Revert "Add localization_channel unit test" This reverts commit fd3997d. * Update minor things: * Update flutter_tizen_engine_unittest (localization) * Rename file : settings_channel_device.cc -> settings_channel_tizen.cc settings_channel_stub.cc -> settings_channel_linux.cc Signed-off-by: MuHong Byun <[email protected]> * Apply review's comment Signed-off-by: MuHong Byun <[email protected]> * Add review's commit Signed-off-by: MuHong Byun <[email protected]>
* Add setting channel unit test Signed-off-by: MuHong Byun <[email protected]> * Add localization_channel unit test Signed-off-by: MuHong Byun <[email protected]> * Revert "Add localization_channel unit test" This reverts commit fd3997d. * Update minor things: * Update flutter_tizen_engine_unittest (localization) * Rename file : settings_channel_device.cc -> settings_channel_tizen.cc settings_channel_stub.cc -> settings_channel_linux.cc Signed-off-by: MuHong Byun <[email protected]> * Apply review's comment Signed-off-by: MuHong Byun <[email protected]> * Add review's commit Signed-off-by: MuHong Byun <[email protected]>
* Add setting channel unit test Signed-off-by: MuHong Byun <[email protected]> * Add localization_channel unit test Signed-off-by: MuHong Byun <[email protected]> * Revert "Add localization_channel unit test" This reverts commit fd3997d. * Update minor things: * Update flutter_tizen_engine_unittest (localization) * Rename file : settings_channel_device.cc -> settings_channel_tizen.cc settings_channel_stub.cc -> settings_channel_linux.cc Signed-off-by: MuHong Byun <[email protected]> * Apply review's comment Signed-off-by: MuHong Byun <[email protected]> * Add review's commit Signed-off-by: MuHong Byun <[email protected]>
* Add setting channel unit test * Update minor things: * Update flutter_tizen_engine_unittest (localization) * Rename file : settings_channel_device.cc -> settings_channel_tizen.cc settings_channel_stub.cc -> settings_channel_linux.cc * Apply review's comment Signed-off-by: MuHong Byun <[email protected]>
* Add setting channel unit test * Update minor things: * Update flutter_tizen_engine_unittest (localization) * Rename file : settings_channel_device.cc -> settings_channel_tizen.cc settings_channel_stub.cc -> settings_channel_linux.cc * Apply review's comment Signed-off-by: MuHong Byun <[email protected]>
* Add setting channel unit test * Update minor things: * Update flutter_tizen_engine_unittest (localization) * Rename file : settings_channel_device.cc -> settings_channel_tizen.cc settings_channel_stub.cc -> settings_channel_linux.cc * Apply review's comment Signed-off-by: MuHong Byun <[email protected]>
* Add setting channel unit test * Update minor things: * Update flutter_tizen_engine_unittest (localization) * Rename file : settings_channel_device.cc -> settings_channel_tizen.cc settings_channel_stub.cc -> settings_channel_linux.cc * Apply review's comment Signed-off-by: MuHong Byun <[email protected]>
* Add setting channel unit test * Update minor things: * Update flutter_tizen_engine_unittest (localization) * Rename file : settings_channel_device.cc -> settings_channel_tizen.cc settings_channel_stub.cc -> settings_channel_linux.cc Signed-off-by: MuHong Byun <[email protected]>
* Dries up GN rules for Metal and OpenGL ES shader compilation and embedding in a target binary. * Adds support for shader compile time macro definitions. This is so that workarounds for specific shader backends can be implemented. In the case of this patch, there are temporary OpenGLES workaround for users of instancing and SSBOs. These will be removed when I rework glyph rendering to not use these features that are missing in legacy targets. * Since there is no concept of an OpenGLES shader library akin to a `.metallib`, adds a target called `blobcat` that concatenates shader blobs into single blob that can be embedded into a target binary. No parsing or data copying is necessary. * `imgui_raster.vert` has been rewritten to work around the absence of unsigned integer types in legacy backends.
* Add setting channel unit test * Update minor things: * Update flutter_tizen_engine_unittest (localization) * Rename file : settings_channel_device.cc -> settings_channel_tizen.cc settings_channel_stub.cc -> settings_channel_linux.cc Signed-off-by: MuHong Byun <[email protected]>