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

Unified Diff: chrome/browser/ui/app_list/app_list_controller_browsertest.cc

Issue 303543004: MacViews: views_examples_with_content_exe working! Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add files Created 6 years, 7 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
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | content/common/gpu/image_transport_surface_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/app_list_controller_browsertest.cc
diff --git a/chrome/browser/ui/app_list/app_list_controller_browsertest.cc b/chrome/browser/ui/app_list/app_list_controller_browsertest.cc
index 77477b927167054476f5b1a5d132429e77fe2f20..f6de879495f73c3fdd00e9eb0498367265d8f5b2 100644
--- a/chrome/browser/ui/app_list/app_list_controller_browsertest.cc
+++ b/chrome/browser/ui/app_list/app_list_controller_browsertest.cc
@@ -15,6 +15,7 @@
#include "chrome/browser/ui/host_desktop.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/test/base/in_process_browser_test.h"
+#include "ui/app_list/app_list_item_model.h"
#include "ui/app_list/app_list_model.h"
#include "ui/app_list/search_box_model.h"
#include "ui/app_list/search_result.h"
@@ -163,3 +164,29 @@ IN_PROC_BROWSER_TEST_F(AppListControllerSearchResultsBrowserTest,
StopWatchingResults();
service->DismissAppList();
}
+
+// Tests install flow UI updates.
+IN_PROC_BROWSER_TEST_F(AppListControllerSearchResultsBrowserTest, InstallFlow) {
+ test::SigninProfile(browser()->profile());
+ base::FilePath test_extension_path;
+ ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &test_extension_path));
+ test_extension_path = test_extension_path.AppendASCII("extensions")
+ .AppendASCII("platform_apps")
+ .AppendASCII("minimal");
+ const extensions::Extension* extension =
+ InstallExtension(test_extension_path,
+ 1 /* expected_change: new install */);
+ ASSERT_TRUE(extension);
+
+ AppListService* service = test::GetAppListService();
+ ASSERT_TRUE(service);
+ service->ShowForProfile(browser()->profile());
+
+ app_list::AppListModel* model = test::GetAppListModel(service);
+
+ app_list::AppListItemModel* item =
+ model->item_list()->FindItem(extension->id());
+ item->SetIsInstalling(true);
+ item->SetPercentDownloaded(33);
+ base::MessageLoop::current()->Run();
+}
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | content/common/gpu/image_transport_surface_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698