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

Side by Side Diff: chrome/browser/extensions/convert_web_app_browsertest.cc

Issue 106713002: Move LaunchContainer enum to extension_constants.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <string> 5 #include <string>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 if (!installed_extension_) 80 if (!installed_extension_)
81 content::RunMessageLoop(); 81 content::RunMessageLoop();
82 82
83 EXPECT_TRUE(installed_extension_); 83 EXPECT_TRUE(installed_extension_);
84 EXPECT_TRUE(installed_extension_->is_hosted_app()); 84 EXPECT_TRUE(installed_extension_->is_hosted_app());
85 EXPECT_EQ("Test application", installed_extension_->name()); 85 EXPECT_EQ("Test application", installed_extension_->name());
86 EXPECT_EQ("", installed_extension_->description()); 86 EXPECT_EQ("", installed_extension_->description());
87 EXPECT_EQ(GURL("http://www.example.com/"), 87 EXPECT_EQ(GURL("http://www.example.com/"),
88 AppLaunchInfo::GetLaunchWebURL(installed_extension_)); 88 AppLaunchInfo::GetLaunchWebURL(installed_extension_));
89 EXPECT_EQ(LAUNCH_TAB, 89 EXPECT_EQ(LAUNCH_CONTAINER_TAB,
90 AppLaunchInfo::GetLaunchContainer(installed_extension_)); 90 AppLaunchInfo::GetLaunchContainer(installed_extension_));
91 EXPECT_EQ(0u, installed_extension_->GetActivePermissions()->apis().size()); 91 EXPECT_EQ(0u, installed_extension_->GetActivePermissions()->apis().size());
92 EXPECT_EQ(0u, IconsInfo::GetIcons(installed_extension_).map().size()); 92 EXPECT_EQ(0u, IconsInfo::GetIcons(installed_extension_).map().size());
93 } 93 }
94 94
95 } // namespace extensions 95 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/socket/socket_apitest.cc ('k') | chrome/browser/extensions/extension_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698