| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/web_applications/web_app.h" | 5 #include "chrome/browser/web_applications/web_app.h" |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "chrome/browser/renderer_host/test/test_render_view_host.h" | 9 #include "chrome/browser/renderer_host/test/test_render_view_host.h" |
| 10 #include "chrome/common/render_messages.h" | 10 #include "chrome/common/render_messages.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 ShellIntegration::ShortcutInfo info; | 50 ShellIntegration::ShortcutInfo info; |
| 51 web_app::GetShortcutInfoForTab(contents(), &info); | 51 web_app::GetShortcutInfoForTab(contents(), &info); |
| 52 | 52 |
| 53 EXPECT_EQ(title, info.title); | 53 EXPECT_EQ(title, info.title); |
| 54 EXPECT_EQ(description, info.description); | 54 EXPECT_EQ(description, info.description); |
| 55 EXPECT_EQ(url, info.url); | 55 EXPECT_EQ(url, info.url); |
| 56 } | 56 } |
| 57 | 57 |
| 58 TEST_F(WebApplicationTest, GetDataDir) { | 58 TEST_F(WebApplicationTest, GetDataDir) { |
| 59 FilePath test_path(FILE_PATH_LITERAL("/path/to/test")); | 59 FilePath test_path(FILE_PATH_LITERAL("/path/to/test")); |
| 60 FilePath result = web_app::GetDataDir(FilePath(FILE_PATH_LITERAL(test_path))); | 60 FilePath result = web_app::GetDataDir(test_path); |
| 61 test_path = test_path.AppendASCII("Web Applications"); | 61 test_path = test_path.AppendASCII("Web Applications"); |
| 62 EXPECT_EQ(test_path.value(), result.value()); | 62 EXPECT_EQ(test_path.value(), result.value()); |
| 63 } | 63 } |
| OLD | NEW |