diff options
author | Patrick Venture <venture@google.com> | 2019-06-04 07:20:24 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2019-06-17 18:51:19 +0000 |
commit | 8bc117792fbf118dd74d015546c22612961ccc26 (patch) | |
tree | 561a4dbb372b4a8811ba66e8f8beac8da31bb6f1 /test/manager_sessionstat_unittest.cpp | |
parent | a67323a86ec201d9292d2743a707ac04909615e3 (diff) | |
download | phosphor-ipmi-blobs-8bc117792fbf118dd74d015546c22612961ccc26.tar.gz phosphor-ipmi-blobs-8bc117792fbf118dd74d015546c22612961ccc26.zip |
blobs: s/struct BlobMeta/BlobMeta/g
Because this structure is not anything special, simply use the cpp
idiomatic way of referencing the object.
Consistently, structures that are packed still have "struct" used in
declarations. However, this distinction is only clear through its usage
and nothing in the language. Perhaps a better approach would be
notational naming struct PackedXYZ {};. However, that can get out of
control quickly.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I3b7e48e4b6687ef2e15e9d07c0eeba96eb5d2552
Diffstat (limited to 'test/manager_sessionstat_unittest.cpp')
-rw-r--r-- | test/manager_sessionstat_unittest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/manager_sessionstat_unittest.cpp b/test/manager_sessionstat_unittest.cpp index 6ae27d3..015a079 100644 --- a/test/manager_sessionstat_unittest.cpp +++ b/test/manager_sessionstat_unittest.cpp @@ -14,7 +14,7 @@ TEST(ManagerSessionStatTest, StatNoSessionReturnsFalse) // Calling Stat on a session that doesn't exist should return false. BlobManager mgr; - struct BlobMeta meta; + BlobMeta meta; uint16_t sess = 1; EXPECT_FALSE(mgr.stat(sess, &meta)); @@ -36,7 +36,7 @@ TEST(ManagerSessionStatTest, StatSessionFoundButHandlerReturnsFalse) EXPECT_CALL(*m1ptr, open(_, flags, path)).WillOnce(Return(true)); EXPECT_TRUE(mgr.open(flags, path, &sess)); - struct BlobMeta meta; + BlobMeta meta; EXPECT_CALL(*m1ptr, stat(sess, &meta)).WillOnce(Return(false)); EXPECT_FALSE(mgr.stat(sess, &meta)); @@ -58,7 +58,7 @@ TEST(ManagerSessionStatTest, StatSessionFoundAndHandlerReturnsSuccess) EXPECT_CALL(*m1ptr, open(_, flags, path)).WillOnce(Return(true)); EXPECT_TRUE(mgr.open(flags, path, &sess)); - struct BlobMeta meta; + BlobMeta meta; EXPECT_CALL(*m1ptr, stat(sess, &meta)).WillOnce(Return(true)); EXPECT_TRUE(mgr.stat(sess, &meta)); |