mirror of
https://gitee.com/openharmony/window_window_manager
synced 2025-03-04 05:37:27 +00:00
fix_fuzz_tests
Signed-off-by: zhangkai <zhangkai324@huawei.com> Change-Id: I85fc5ac984ac4c8ac9e80f358c167d2a929c86fb
This commit is contained in:
parent
0f8c8e895e
commit
1e2f5d4030
@ -27,7 +27,6 @@ using namespace OHOS::Rosen;
|
||||
namespace OHOS {
|
||||
namespace {
|
||||
constexpr size_t DATA_MIN_SIZE = 2;
|
||||
constexpr uint32_t DELAY_TIME_US = 1000000; // 1s;
|
||||
}
|
||||
class FocusChangedListener : public IFocusChangedListener {
|
||||
public:
|
||||
@ -80,7 +79,6 @@ bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size)
|
||||
}
|
||||
window->Hide(0);
|
||||
window->Destroy();
|
||||
usleep(DELAY_TIME_US);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -412,7 +410,6 @@ void WindowImplFuzzTest(const uint8_t* data, size_t size)
|
||||
|
||||
window->Hide(reason, withAnimation);
|
||||
window->Destroy();
|
||||
usleep(DELAY_TIME_US);
|
||||
}
|
||||
} // namespace.OHOS
|
||||
|
||||
|
@ -29,7 +29,6 @@ using namespace OHOS::Rosen;
|
||||
namespace OHOS {
|
||||
namespace {
|
||||
constexpr size_t DATA_MIN_SIZE = 2;
|
||||
constexpr uint32_t DELAY_TIME_US = 1000000; // 1s;
|
||||
}
|
||||
|
||||
template<class T>
|
||||
@ -146,7 +145,6 @@ void WindowAgentFuzzTest(const uint8_t* data, size_t size)
|
||||
|
||||
window->Hide();
|
||||
window->Destroy();
|
||||
usleep(DELAY_TIME_US);
|
||||
}
|
||||
} // namespace.OHOS
|
||||
|
||||
|
@ -16,7 +16,6 @@
|
||||
#include "windowscene_fuzzer.h"
|
||||
|
||||
#include <securec.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "display_manager.h"
|
||||
#include "window.h"
|
||||
@ -30,7 +29,6 @@ namespace {
|
||||
constexpr size_t DATA_MIN_SIZE = 2;
|
||||
constexpr char END_CHAR = '\0';
|
||||
constexpr size_t LEN = 10;
|
||||
constexpr uint32_t DELAY_TIME_US = 1000000; // 1s;
|
||||
}
|
||||
class WindowLifeCycle : public IWindowLifeCycle {
|
||||
public:
|
||||
@ -178,7 +176,6 @@ bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size)
|
||||
windowScene->GoBackground(reason);
|
||||
if (window != nullptr) {
|
||||
window->Destroy();
|
||||
usleep(DELAY_TIME_US);
|
||||
}
|
||||
windowScene->GoDestroy();
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user