Index: ui/views/test/test_layout_manager.cc |
diff --git a/ui/views/test/test_layout_manager.cc b/ui/views/test/test_layout_manager.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ae1f2678b20e70ffb6afaa6293a712256c1bae2e |
--- /dev/null |
+++ b/ui/views/test/test_layout_manager.cc |
@@ -0,0 +1,26 @@ |
+// 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 "ui/views/test/test_layout_manager.h" |
+ |
+namespace views { |
+namespace test { |
+ |
+TestLayoutManager::TestLayoutManager() {} |
+ |
+TestLayoutManager::~TestLayoutManager() {} |
+ |
+void TestLayoutManager::Layout(View* host) {} |
+ |
+gfx::Size TestLayoutManager::GetPreferredSize(const View* host) const { |
+ return preferred_size_; |
+} |
+ |
+int TestLayoutManager::GetPreferredHeightForWidth(const View* host, |
+ int width) const { |
+ return preferred_height_for_width_; |
+} |
+ |
+} // namespace test |
+} // namespace views |