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

Side by Side Diff: ash/launcher/launcher_model_unittest.cc

Issue 9033007: Rename the aura_shell namespace to ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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
OLDNEW
1 // Copyright (c) 2011 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 "ash/launcher/launcher_model.h" 5 #include "ash/launcher/launcher_model.h"
6 6
7 #include "ash/launcher/launcher_model_observer.h" 7 #include "ash/launcher/launcher_model_observer.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace aura_shell { 11 namespace ash {
12 12
13 namespace { 13 namespace {
14 14
15 // LauncherModelObserver implementation that tracks what message are invoked. 15 // LauncherModelObserver implementation that tracks what message are invoked.
16 class TestLauncherModelObserver : public LauncherModelObserver { 16 class TestLauncherModelObserver : public LauncherModelObserver {
17 public: 17 public:
18 TestLauncherModelObserver() 18 TestLauncherModelObserver()
19 : added_count_(0), 19 : added_count_(0),
20 removed_count_(0), 20 removed_count_(0),
21 images_changed_count_(0), 21 images_changed_count_(0),
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 EXPECT_EQ(reinterpret_cast<void*>(2), model.items()[0].user_data); 112 EXPECT_EQ(reinterpret_cast<void*>(2), model.items()[0].user_data);
113 EXPECT_EQ(reinterpret_cast<void*>(1), model.items()[1].user_data); 113 EXPECT_EQ(reinterpret_cast<void*>(1), model.items()[1].user_data);
114 114
115 // Move the first item to the second item. 115 // Move the first item to the second item.
116 model.Move(0, 1); 116 model.Move(0, 1);
117 EXPECT_EQ("moved=1", observer.StateStringAndClear()); 117 EXPECT_EQ("moved=1", observer.StateStringAndClear());
118 EXPECT_EQ(reinterpret_cast<void*>(1), model.items()[0].user_data); 118 EXPECT_EQ(reinterpret_cast<void*>(1), model.items()[0].user_data);
119 EXPECT_EQ(reinterpret_cast<void*>(2), model.items()[1].user_data); 119 EXPECT_EQ(reinterpret_cast<void*>(2), model.items()[1].user_data);
120 } 120 }
121 121
122 } // namespace aura_shell 122 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698