7#include <gmock/gmock.h>
8#include <gtest/gtest.h>
9#include <lib/async-loop/cpp/loop.h>
10#include <lib/async-loop/default.h>
11#include <lib/inspect/cpp/reader.h>
16 const std::string&
name,
17 const std::string& expected_value) {
19 EXPECT_TRUE(build_info !=
nullptr);
21 build_info->node().get_property<inspect::StringPropertyValue>(
name);
22 EXPECT_TRUE(actual_value !=
nullptr);
23 EXPECT_EQ(actual_value->value(), expected_value);
31 async::Loop loop(&kAsyncLoopConfigAttachToCurrentThread);
32 auto context = sys::ComponentContext::Create();
40 "{{DART_SDK_SEMANTIC_VERSION}}");
42 "{{FLUTTER_ENGINE_GIT_REVISION}}");
50 inspect::Hierarchy root =
const std::string & inspect_node_name
void checkProperty(inspect::Hierarchy &root, const std::string &name, const std::string &expected_value)
static void Dump(inspect::Node &node)
static const char * FuchsiaSdkVersion()
static const char * DartSdkSemanticVersion()
static const char * FlutterEngineGitRevision()
static const char * DartSdkGitRevision()
static void SetUpTestSuite()
static inspect::Inspector * GetInspector()
static void Initialize(sys::ComponentContext *context)
static inspect::Node CreateRootChild(const std::string &name)
TEST_F(BuildInfoTest, AllPropertiesAreDefined)