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

Unified Diff: ash/shelf/shelf_model_unittest.cc

Issue 71653003: ash: Rename LauncherModel to ShelfModel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chrome changes Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/shelf/shelf_model_observer.h ('k') | ash/shelf/shelf_model_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_model_unittest.cc
diff --git a/ash/launcher/launcher_model_unittest.cc b/ash/shelf/shelf_model_unittest.cc
similarity index 95%
rename from ash/launcher/launcher_model_unittest.cc
rename to ash/shelf/shelf_model_unittest.cc
index b22dee9fb215ba10cce60a679270fd0af7d406bc..48281d52c5cd21695fad6b78d586e19ccd51b855 100644
--- a/ash/launcher/launcher_model_unittest.cc
+++ b/ash/shelf/shelf_model_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ash/launcher/launcher_model.h"
+#include "ash/shelf/shelf_model.h"
#include <set>
#include <string>
@@ -75,13 +75,13 @@ class TestShelfModelObserver : public ShelfModelObserver {
} // namespace
-class LauncherModelTest : public testing::Test {
+class ShelfModelTest : public testing::Test {
public:
- LauncherModelTest() {}
- virtual ~LauncherModelTest() {}
+ ShelfModelTest() {}
+ virtual ~ShelfModelTest() {}
virtual void SetUp() {
- model_.reset(new LauncherModel);
+ model_.reset(new ShelfModel);
observer_.reset(new TestShelfModelObserver);
EXPECT_EQ(0, model_->item_count());
@@ -98,14 +98,14 @@ class LauncherModelTest : public testing::Test {
model_.reset();
}
- scoped_ptr<LauncherModel> model_;
+ scoped_ptr<ShelfModel> model_;
scoped_ptr<TestShelfModelObserver> observer_;
private:
- DISALLOW_COPY_AND_ASSIGN(LauncherModelTest);
+ DISALLOW_COPY_AND_ASSIGN(ShelfModelTest);
};
-TEST_F(LauncherModelTest, BasicAssertions) {
+TEST_F(ShelfModelTest, BasicAssertions) {
// Add an item.
LauncherItem item;
item.type = TYPE_APP_SHORTCUT;
@@ -157,7 +157,7 @@ TEST_F(LauncherModelTest, BasicAssertions) {
}
// Assertions around where items are added.
-TEST_F(LauncherModelTest, AddIndices) {
+TEST_F(ShelfModelTest, AddIndices) {
// Insert browser short cut at index 1.
LauncherItem browser_shortcut;
browser_shortcut.type = TYPE_BROWSER_SHORTCUT;
@@ -237,7 +237,7 @@ TEST_F(LauncherModelTest, AddIndices) {
}
// Assertions around where items are added.
-TEST_F(LauncherModelTest, AddIndicesForLegacyShelfLayout) {
+TEST_F(ShelfModelTest, AddIndicesForLegacyShelfLayout) {
CommandLine::ForCurrentProcess()->AppendSwitch(
ash::switches::kAshDisableAlternateShelfLayout);
@@ -320,7 +320,7 @@ TEST_F(LauncherModelTest, AddIndicesForLegacyShelfLayout) {
}
// Assertions around id generation and usage.
-TEST_F(LauncherModelTest, LauncherIDTests) {
+TEST_F(ShelfModelTest, LauncherIDTests) {
// Get the next to use ID counter.
LauncherID id = model_->next_id();
@@ -345,7 +345,7 @@ TEST_F(LauncherModelTest, LauncherIDTests) {
// This verifies that converting an existing item into a lower weight category
// (e.g. shortcut to running but not pinned app) will move it to the proper
// location. See crbug.com/248769.
-TEST_F(LauncherModelTest, CorrectMoveItemsWhenStateChange) {
+TEST_F(ShelfModelTest, CorrectMoveItemsWhenStateChange) {
// The first item is the app list and last item is the browser.
LauncherItem browser_shortcut;
browser_shortcut.type = TYPE_BROWSER_SHORTCUT;
@@ -372,7 +372,7 @@ TEST_F(LauncherModelTest, CorrectMoveItemsWhenStateChange) {
EXPECT_EQ(TYPE_PLATFORM_APP, model_->items()[4].type);
}
-TEST_F(LauncherModelTest, CorrectMoveItemsWhenStateChangeForLegacyShelfLayout) {
+TEST_F(ShelfModelTest, CorrectMoveItemsWhenStateChangeForLegacyShelfLayout) {
CommandLine::ForCurrentProcess()->AppendSwitch(
ash::switches::kAshDisableAlternateShelfLayout);
« no previous file with comments | « ash/shelf/shelf_model_observer.h ('k') | ash/shelf/shelf_model_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698