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

Side by Side Diff: chrome/browser/web_applications/web_app_unittest.cc

Issue 213113005: Remove web_app_ui.[cc|h]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 8 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/web_applications/web_app.h" 5 #include "chrome/browser/web_applications/web_app.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/extensions/tab_helper.h" 10 #include "chrome/browser/extensions/tab_helper.h"
11 #include "chrome/browser/favicon/favicon_tab_helper.h" 11 #include "chrome/browser/favicon/favicon_tab_helper.h"
12 #include "chrome/browser/ui/web_applications/web_app_ui.h"
13 #include "chrome/browser/web_applications/web_app.h" 12 #include "chrome/browser/web_applications/web_app.h"
14 #include "chrome/common/extensions/chrome_extension_messages.h" 13 #include "chrome/common/extensions/chrome_extension_messages.h"
15 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 14 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
16 #include "content/public/test/test_renderer_host.h" 15 #include "content/public/test/test_renderer_host.h"
17 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
18 17
19 using content::RenderViewHostTester; 18 using content::RenderViewHostTester;
20 19
21 class WebApplicationTest : public ChromeRenderViewHostTestHarness { 20 class WebApplicationTest : public ChromeRenderViewHostTestHarness {
22 protected: 21 protected:
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 61 }
63 62
64 TEST_F(WebApplicationTest, AppDirWithUrl) { 63 TEST_F(WebApplicationTest, AppDirWithUrl) {
65 base::FilePath profile_path(FILE_PATH_LITERAL("profile")); 64 base::FilePath profile_path(FILE_PATH_LITERAL("profile"));
66 base::FilePath result(web_app::GetWebAppDataDirectory( 65 base::FilePath result(web_app::GetWebAppDataDirectory(
67 profile_path, std::string(), GURL("http://example.com"))); 66 profile_path, std::string(), GURL("http://example.com")));
68 base::FilePath expected = profile_path.AppendASCII("Web Applications") 67 base::FilePath expected = profile_path.AppendASCII("Web Applications")
69 .AppendASCII("example.com").AppendASCII("http_80"); 68 .AppendASCII("example.com").AppendASCII("http_80");
70 EXPECT_EQ(expected, result); 69 EXPECT_EQ(expected, result);
71 } 70 }
OLDNEW
« no previous file with comments | « chrome/browser/web_applications/web_app.cc ('k') | chrome/browser/web_applications/web_app_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698