OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
15 #include "cc/layers/layer.h" | 15 #include "cc/layers/layer.h" |
16 #include "cc/output/delegated_frame_data.h" | 16 #include "cc/output/delegated_frame_data.h" |
17 #include "cc/test/pixel_test_utils.h" | 17 #include "cc/test/pixel_test_utils.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 #include "ui/compositor/compositor_observer.h" | 19 #include "ui/compositor/compositor_observer.h" |
20 #include "ui/compositor/compositor_setup.h" | 20 #include "ui/compositor/compositor_setup.h" |
21 #include "ui/compositor/layer.h" | 21 #include "ui/compositor/layer.h" |
(...skipping 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1419 l1->SetOpacity(0.5f); | 1419 l1->SetOpacity(0.5f); |
1420 | 1420 |
1421 // Change l1's cc::Layer. | 1421 // Change l1's cc::Layer. |
1422 l1->SwitchCCLayerForTest(); | 1422 l1->SwitchCCLayerForTest(); |
1423 | 1423 |
1424 // Ensure that the opacity animation completed. | 1424 // Ensure that the opacity animation completed. |
1425 EXPECT_FLOAT_EQ(l1->opacity(), 0.5f); | 1425 EXPECT_FLOAT_EQ(l1->opacity(), 0.5f); |
1426 } | 1426 } |
1427 | 1427 |
1428 } // namespace ui | 1428 } // namespace ui |
OLD | NEW |