OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "testing/gtest/include/gtest/gtest.h" | 5 #include "testing/gtest/include/gtest/gtest.h" |
6 | 6 |
7 #include "app/view_prop.h" | |
8 #include "base/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
| 8 #include "ui/base/view_prop.h" |
| 9 |
| 10 namespace ui { |
9 | 11 |
10 typedef testing::Test ViewPropTest; | 12 typedef testing::Test ViewPropTest; |
11 | 13 |
12 static const char* kKey1 = "key_1"; | 14 static const char* kKey1 = "key_1"; |
13 static const char* kKey2 = "key_2"; | 15 static const char* kKey2 = "key_2"; |
14 | 16 |
15 using app::ViewProp; | 17 using app::ViewProp; |
16 | 18 |
17 // Test a handful of viewprop assertions. | 19 // Test a handful of viewprop assertions. |
18 TEST_F(ViewPropTest, Basic) { | 20 TEST_F(ViewPropTest, Basic) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 63 |
62 v1.reset(NULL); | 64 v1.reset(NULL); |
63 EXPECT_EQ(NULL, ViewProp::GetValue(nv1, kKey1)); | 65 EXPECT_EQ(NULL, ViewProp::GetValue(nv1, kKey1)); |
64 EXPECT_EQ(data2, ViewProp::GetValue(nv2, kKey2)); | 66 EXPECT_EQ(data2, ViewProp::GetValue(nv2, kKey2)); |
65 | 67 |
66 v2.reset(NULL); | 68 v2.reset(NULL); |
67 EXPECT_EQ(NULL, ViewProp::GetValue(nv1, kKey1)); | 69 EXPECT_EQ(NULL, ViewProp::GetValue(nv1, kKey1)); |
68 EXPECT_EQ(NULL, ViewProp::GetValue(nv2, kKey2)); | 70 EXPECT_EQ(NULL, ViewProp::GetValue(nv2, kKey2)); |
69 } | 71 } |
70 } | 72 } |
| 73 |
| 74 } // namespace ui |
OLD | NEW |