OLD | NEW |
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 "chrome/browser/shell_integration.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <vector> | 9 #include <vector> |
8 | 10 |
9 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
10 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
11 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
12 #include "base/macros.h" | 14 #include "base/macros.h" |
13 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
14 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
16 #include "base/test/test_shortcut_win.h" | 18 #include "base/test/test_shortcut_win.h" |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 default_profile_path)); | 422 default_profile_path)); |
421 | 423 |
422 // Non-default profile path should get chrome::kBrowserAppID + AppList joined | 424 // Non-default profile path should get chrome::kBrowserAppID + AppList joined |
423 // with profile info. | 425 // with profile info. |
424 base::FilePath profile_path(FILE_PATH_LITERAL("root")); | 426 base::FilePath profile_path(FILE_PATH_LITERAL("root")); |
425 profile_path = profile_path.Append(FILE_PATH_LITERAL("udd")); | 427 profile_path = profile_path.Append(FILE_PATH_LITERAL("udd")); |
426 profile_path = profile_path.Append(FILE_PATH_LITERAL("User Data - Test")); | 428 profile_path = profile_path.Append(FILE_PATH_LITERAL("User Data - Test")); |
427 EXPECT_EQ(base_app_id + L".udd.UserDataTest", | 429 EXPECT_EQ(base_app_id + L".udd.UserDataTest", |
428 ShellIntegration::GetAppListAppModelIdForProfile(profile_path)); | 430 ShellIntegration::GetAppListAppModelIdForProfile(profile_path)); |
429 } | 431 } |
OLD | NEW |