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

Unified Diff: mojo/public/cpp/bindings/tests/equals_unittest.cc

Issue 1997473005: Remove requirement that mojo::Environment be instantiated. (Closed) Base URL: https://github.com/domokit/mojo.git@work797_no_utility_tls
Patch Set: SetDefaultAsyncWaiter Created 4 years, 7 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
Index: mojo/public/cpp/bindings/tests/equals_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/equals_unittest.cc b/mojo/public/cpp/bindings/tests/equals_unittest.cc
index 4b70af0875c98a26242b96e6606e1ec7b608c1e2..efac86bcdeb3695297115969d38d4d914bde5cf9 100644
--- a/mojo/public/cpp/bindings/tests/equals_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/equals_unittest.cc
@@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "mojo/public/cpp/environment/environment.h"
#include "mojo/public/interfaces/bindings/tests/test_structs.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -20,16 +19,9 @@ RectPtr CreateRect() {
return r;
}
-class EqualsTest : public testing::Test {
- public:
- ~EqualsTest() override {}
+} // namespace
- private:
- Environment env_;
-};
-}
-
-TEST_F(EqualsTest, Null) {
+TEST(EqualsTest, Null) {
RectPtr r1;
RectPtr r2;
EXPECT_TRUE(r1.Equals(r2));
@@ -40,7 +32,7 @@ TEST_F(EqualsTest, Null) {
EXPECT_FALSE(r2.Equals(r1));
}
-TEST_F(EqualsTest, EqualsStruct) {
+TEST(EqualsTest, EqualsStruct) {
RectPtr r1(CreateRect());
RectPtr r2(r1.Clone());
EXPECT_TRUE(r1.Equals(r2));
@@ -50,7 +42,7 @@ TEST_F(EqualsTest, EqualsStruct) {
EXPECT_FALSE(r1.Equals(r2));
}
-TEST_F(EqualsTest, EqualsStructNested) {
+TEST(EqualsTest, EqualsStructNested) {
RectPairPtr p1(RectPair::New());
p1->first = CreateRect();
p1->second = CreateRect();
@@ -62,7 +54,7 @@ TEST_F(EqualsTest, EqualsStructNested) {
EXPECT_FALSE(p1.Equals(p2));
}
-TEST_F(EqualsTest, EqualsArray) {
+TEST(EqualsTest, EqualsArray) {
NamedRegionPtr n1(NamedRegion::New());
n1->name = "n1";
n1->rects.push_back(CreateRect());
@@ -86,7 +78,7 @@ TEST_F(EqualsTest, EqualsArray) {
EXPECT_TRUE(n1.Equals(n2));
}
-TEST_F(EqualsTest, EqualsMap) {
+TEST(EqualsTest, EqualsMap) {
auto n1(NamedRegion::New());
n1->name = "foo";
n1->rects.push_back(CreateRect());
« no previous file with comments | « mojo/public/cpp/bindings/tests/connector_unittest.cc ('k') | mojo/public/cpp/bindings/tests/handle_passing_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698