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

Side by Side Diff: ui/base/view_prop_unittest.cc

Issue 6257006: Move a bunch of random other files to src/ui/base... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/base/view_prop.cc ('k') | ui/base/x/active_window_watcher_x.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/base/view_prop.cc ('k') | ui/base/x/active_window_watcher_x.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698