diff --git a/test/BUILD b/test/BUILD index 9b8a90e..ea719ad 100644 --- a/test/BUILD +++ b/test/BUILD @@ -24,6 +24,17 @@ cc_test( ], ) +cc_test( + name = "test_oss", + srcs = [ + "test_oss.cpp", + ], + deps = [ + "//src/plugin:oss", + "@com_google_googletest//:gtest_main", + ], +) + cc_test( name = "test_util", srcs = [ diff --git a/test/test_oss.cpp b/test/test_oss.cpp new file mode 100644 index 0000000..ec66014 --- /dev/null +++ b/test/test_oss.cpp @@ -0,0 +1,12 @@ +#include "gtest/gtest.h" +#include "src/plugin/oss.h" + +plugin::OssClient client; + +TEST(oss, initialize) { + ASSERT_EQ(client.initialize(), 0); +} + +TEST(oss, put_object) { + ASSERT_EQ(client.put_object("example.jpg", "example.jpg"), 0); +} \ No newline at end of file