2023-03-21 22:38:11 +08:00
|
|
|
#include <gtest/gtest.h>
|
|
|
|
#include <cdroid.h>
|
|
|
|
#include <ngl_os.h>
|
|
|
|
|
|
|
|
using namespace cdroid;
|
|
|
|
|
|
|
|
class ASSETS:public testing::Test{
|
|
|
|
|
|
|
|
public :
|
|
|
|
virtual void SetUp(){
|
|
|
|
}
|
|
|
|
virtual void TearDown(){
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2023-03-25 17:29:54 +08:00
|
|
|
TEST_F(ASSETS,array){
|
2023-03-21 22:38:11 +08:00
|
|
|
App app(0,NULL);
|
|
|
|
std::vector<std::string>array;
|
|
|
|
app.getArray("cdroid:array/resolver_target_actions_unpin",array);
|
|
|
|
for(auto a:array)printf("%s\r\n",a.c_str());
|
|
|
|
ASSERT_TRUE(array.size()>0);
|
|
|
|
}
|
2023-03-25 17:29:54 +08:00
|
|
|
TEST_F(ASSETS,color){
|
|
|
|
App app(0,NULL);
|
|
|
|
ColorStateList*cl=app.getColorStateList("cdroid:attr/editTextColor");
|
|
|
|
ASSERT_TRUE(cl!=NULL);
|
|
|
|
cl=app.getColorStateList("cdroid:color/textview");
|
|
|
|
ASSERT_TRUE(cl!=NULL);
|
|
|
|
cl->dump();
|
|
|
|
}
|