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

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

Issue 3129007: FBTF: Forward declare everything possible in testing_profile.h (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: argh mac problems now Created 10 years, 4 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
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/chrome_thread.h"
10 #include "chrome/browser/renderer_host/test/test_render_view_host.h" 11 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
11 #include "chrome/common/render_messages.h" 12 #include "chrome/common/render_messages.h"
12 #include "chrome/test/testing_profile.h" 13 #include "chrome/test/testing_profile.h"
13 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
14 15
15 class WebApplicationTest : public RenderViewHostTestHarness { 16 class WebApplicationTest : public RenderViewHostTestHarness {
16 public: 17 public:
17 WebApplicationTest() 18 WebApplicationTest()
18 : RenderViewHostTestHarness(), 19 : RenderViewHostTestHarness(),
19 ui_thread_(ChromeThread::UI, &message_loop_) { 20 ui_thread_(ChromeThread::UI, &message_loop_) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 EXPECT_EQ(description, info.description); 56 EXPECT_EQ(description, info.description);
56 EXPECT_EQ(url, info.url); 57 EXPECT_EQ(url, info.url);
57 } 58 }
58 59
59 TEST_F(WebApplicationTest, GetDataDir) { 60 TEST_F(WebApplicationTest, GetDataDir) {
60 FilePath test_path(FILE_PATH_LITERAL("/path/to/test")); 61 FilePath test_path(FILE_PATH_LITERAL("/path/to/test"));
61 FilePath result = web_app::GetDataDir(test_path); 62 FilePath result = web_app::GetDataDir(test_path);
62 test_path = test_path.AppendASCII("Web Applications"); 63 test_path = test_path.AppendASCII("Web Applications");
63 EXPECT_EQ(test_path.value(), result.value()); 64 EXPECT_EQ(test_path.value(), result.value());
64 } 65 }
OLDNEW
« no previous file with comments | « chrome/browser/views/extensions/browser_action_drag_data_unittest.cc ('k') | chrome/test/testing_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698