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

Unified Diff: chrome/browser/ui/views/aura/app_list/app_list_model_builder_unittest.cc

Issue 9570044: Rename chrome/browser/ui/views/{aura => ash}/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/aura/app_list/app_list_model_builder_unittest.cc
diff --git a/chrome/browser/ui/views/aura/app_list/app_list_model_builder_unittest.cc b/chrome/browser/ui/views/aura/app_list/app_list_model_builder_unittest.cc
deleted file mode 100644
index 73fba411f5cd26563fc382507191b39473741372..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/aura/app_list/app_list_model_builder_unittest.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/app_list/app_list_item_model.h"
-#include "base/file_util.h"
-#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/ui/views/aura/app_list/app_list_model_builder.h"
-#include "chrome/browser/extensions/extension_service_unittest.h"
-#include "chrome/test/base/testing_profile.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-class AppListModelBuilderTest : public ExtensionServiceTestBase {
- public:
- AppListModelBuilderTest() {}
- virtual ~AppListModelBuilderTest() {}
-};
-
-TEST_F(AppListModelBuilderTest, Build) {
- // Load "app_list" extensions test profile. The test profile has 4 extensions:
- // 1 dummy extension, 2 packaged extension apps and 1 hosted extension app.
- FilePath source_install_dir = data_dir_
- .AppendASCII("app_list")
- .AppendASCII("Extensions");
- FilePath pref_path = source_install_dir
- .DirName()
- .AppendASCII("Preferences");
- InitializeInstalledExtensionService(pref_path, source_install_dir);
- service_->Init();
-
- // There should be 4 extensions in the test profile.
- const ExtensionSet* extensions = service_->extensions();
- ASSERT_EQ(static_cast<size_t>(4), extensions->size());
-
- scoped_ptr<ash::AppListModel> model(new ash::AppListModel());
- AppListModelBuilder builder(profile_.get(), model.get());
- builder.Build(std::string());
-
- // Since we are in unit_tests and there is no browser, the model would have
- // only 3 extension apps in the profile.
- EXPECT_EQ(3, model->item_count());
- EXPECT_EQ("Hosted App", model->GetItem(0)->title());
- EXPECT_EQ("Packaged App 1", model->GetItem(1)->title());
- EXPECT_EQ("Packaged App 2", model->GetItem(2)->title());
-}

Powered by Google App Engine
This is Rietveld 408576698