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

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

Issue 6575009: Move files out of chrome\browser\renderer_host\test alongside their source. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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) 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 "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/browser_thread.h"
11 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
12 #include "chrome/browser/tab_contents/test_tab_contents.h"
13 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
14 #include "chrome/test/testing_profile.h" 11 #include "chrome/test/testing_profile.h"
12 #include "content/browser/browser_thread.h"
13 #include "content/browser/renderer_host/test_render_view_host.h"
14 #include "content/browser/tab_contents/test_tab_contents.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 class WebApplicationTest : public RenderViewHostTestHarness { 17 class WebApplicationTest : public RenderViewHostTestHarness {
18 public: 18 public:
19 WebApplicationTest() 19 WebApplicationTest()
20 : RenderViewHostTestHarness(), 20 : RenderViewHostTestHarness(),
21 ui_thread_(BrowserThread::UI, &message_loop_) { 21 ui_thread_(BrowserThread::UI, &message_loop_) {
22 } 22 }
23 23
24 private: 24 private:
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 EXPECT_EQ(description, info.description); 57 EXPECT_EQ(description, info.description);
58 EXPECT_EQ(url, info.url); 58 EXPECT_EQ(url, info.url);
59 } 59 }
60 60
61 TEST_F(WebApplicationTest, GetDataDir) { 61 TEST_F(WebApplicationTest, GetDataDir) {
62 FilePath test_path(FILE_PATH_LITERAL("/path/to/test")); 62 FilePath test_path(FILE_PATH_LITERAL("/path/to/test"));
63 FilePath result = web_app::GetDataDir(test_path); 63 FilePath result = web_app::GetDataDir(test_path);
64 test_path = test_path.AppendASCII("Web Applications"); 64 test_path = test_path.AppendASCII("Web Applications");
65 EXPECT_EQ(test_path.value(), result.value()); 65 EXPECT_EQ(test_path.value(), result.value());
66 } 66 }
OLDNEW
« no previous file with comments | « chrome/browser/visitedlink/visitedlink_unittest.cc ('k') | chrome/browser/webui/sync_internals_ui_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698