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

Side by Side Diff: apps/shell_integration_win_unittest.cc

Issue 12321107: Move shell integration code from chrome/browser to apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 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 "chrome/browser/shell_integration.h" 5 #include "apps/shell_integration.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/test/test_shortcut_win.h" 13 #include "base/test/test_shortcut_win.h"
14 #include "base/win/scoped_com_initializer.h" 14 #include "base/win/scoped_com_initializer.h"
15 #include "base/win/windows_version.h" 15 #include "base/win/windows_version.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 default_profile_path)); 215 default_profile_path));
216 216
217 // Non-default profile path should get chrome::kBrowserAppID + AppList joined 217 // Non-default profile path should get chrome::kBrowserAppID + AppList joined
218 // with profile info. 218 // with profile info.
219 base::FilePath profile_path(FILE_PATH_LITERAL("root")); 219 base::FilePath profile_path(FILE_PATH_LITERAL("root"));
220 profile_path = profile_path.Append(FILE_PATH_LITERAL("udd")); 220 profile_path = profile_path.Append(FILE_PATH_LITERAL("udd"));
221 profile_path = profile_path.Append(FILE_PATH_LITERAL("User Data - Test")); 221 profile_path = profile_path.Append(FILE_PATH_LITERAL("User Data - Test"));
222 EXPECT_EQ(base_app_id + L".udd.UserDataTest", 222 EXPECT_EQ(base_app_id + L".udd.UserDataTest",
223 ShellIntegration::GetAppListAppModelIdForProfile(profile_path)); 223 ShellIntegration::GetAppListAppModelIdForProfile(profile_path));
224 } 224 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698