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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_min_max_content_size_test.cc

Issue 2723023003: Revert of [LayoutNG] Move remaining ng_units structs to their own files (Closed)
Patch Set: Created 3 years, 10 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: third_party/WebKit/Source/core/layout/ng/ng_min_max_content_size_test.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_min_max_content_size_test.cc b/third_party/WebKit/Source/core/layout/ng/ng_min_max_content_size_test.cc
deleted file mode 100644
index 04eea50cf5a0d9d056ec99a3493e4a1db97312a1..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/layout/ng/ng_min_max_content_size_test.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "core/layout/ng/ng_min_max_content_size.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace blink {
-
-namespace {
-
-TEST(NGUnitsTest, ShrinkToFit) {
- MinMaxContentSize sizes;
-
- sizes.min_content = LayoutUnit(100);
- sizes.max_content = LayoutUnit(200);
- EXPECT_EQ(LayoutUnit(200), sizes.ShrinkToFit(LayoutUnit(300)));
-
- sizes.min_content = LayoutUnit(100);
- sizes.max_content = LayoutUnit(300);
- EXPECT_EQ(LayoutUnit(200), sizes.ShrinkToFit(LayoutUnit(200)));
-
- sizes.min_content = LayoutUnit(200);
- sizes.max_content = LayoutUnit(300);
- EXPECT_EQ(LayoutUnit(200), sizes.ShrinkToFit(LayoutUnit(100)));
-}
-
-} // namespace
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698