Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: third_party/mojo/src/mojo/edk/test/run_all_unittests.cc

Issue 1641163005: [Draft] try out the idea of adding export macros for C++ bindings. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/mojo/src/mojo/edk/test/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/mojo/src/mojo/edk/test/run_all_unittests.cc
diff --git a/third_party/mojo/src/mojo/edk/test/run_all_unittests.cc b/third_party/mojo/src/mojo/edk/test/run_all_unittests.cc
index 278cfeff6230ed71f5d8be71394b42e35c227642..583bc238a9f75139f83ef21bbc58ae46affaec25 100644
--- a/third_party/mojo/src/mojo/edk/test/run_all_unittests.cc
+++ b/third_party/mojo/src/mojo/edk/test/run_all_unittests.cc
@@ -11,6 +11,8 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/mojo/src/mojo/edk/embedder/embedder.h"
#include "third_party/mojo/src/mojo/edk/test/test_support_impl.h"
+#include "mojo/public/interfaces/bindings/tests/test_structs.mojom.h"
+#include "mojo/public/interfaces/bindings/tests/sample_service.mojom.h"
int main(int argc, char** argv) {
#if !defined(OS_ANDROID)
@@ -33,6 +35,14 @@ int main(int argc, char** argv) {
mojo::embedder::Init();
mojo::test::TestSupport::Init(new mojo::test::TestSupportImpl());
+ mojo::test::RectPtr rect(mojo::test::Rect::New());
+ uint8_t value = sample::kTwelve;
+ (void)value;
+
+ mojo::InterfacePtr<sample::Service> ptr;
+ mojo::InterfaceRequest<sample::Service> req = GetProxy(&ptr);
+
+
return base::LaunchUnitTests(
argc, argv,
base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
« no previous file with comments | « third_party/mojo/src/mojo/edk/test/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698