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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ui/tab_contents/test_tab_contents_wrapper.h" 10 #include "chrome/browser/ui/tab_contents/test_tab_contents_wrapper.h"
11 #include "chrome/browser/ui/web_applications/web_app_ui.h" 11 #include "chrome/browser/ui/web_applications/web_app_ui.h"
12 #include "chrome/common/extensions/extension_messages.h" 12 #include "chrome/common/extensions/extension_messages.h"
13 #include "chrome/test/base/testing_profile.h" 13 #include "chrome/test/base/testing_profile.h"
14 #include "content/test/test_browser_thread.h" 14 #include "content/test/test_browser_thread.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 using content::BrowserThread;
18
17 class WebApplicationTest : public TabContentsWrapperTestHarness { 19 class WebApplicationTest : public TabContentsWrapperTestHarness {
18 public: 20 public:
19 WebApplicationTest() : ui_thread_(BrowserThread::UI, &message_loop_) { 21 WebApplicationTest() : ui_thread_(BrowserThread::UI, &message_loop_) {
20 } 22 }
21 23
22 private: 24 private:
23 content::TestBrowserThread ui_thread_; 25 content::TestBrowserThread ui_thread_;
24 }; 26 };
25 27
26 TEST_F(WebApplicationTest, GetShortcutInfoForTab) { 28 TEST_F(WebApplicationTest, GetShortcutInfoForTab) {
(...skipping 14 matching lines...) Expand all
41 EXPECT_EQ(description, info.description); 43 EXPECT_EQ(description, info.description);
42 EXPECT_EQ(url, info.url); 44 EXPECT_EQ(url, info.url);
43 } 45 }
44 46
45 TEST_F(WebApplicationTest, GetDataDir) { 47 TEST_F(WebApplicationTest, GetDataDir) {
46 FilePath test_path(FILE_PATH_LITERAL("/path/to/test")); 48 FilePath test_path(FILE_PATH_LITERAL("/path/to/test"));
47 FilePath result = web_app::GetDataDir(test_path); 49 FilePath result = web_app::GetDataDir(test_path);
48 test_path = test_path.AppendASCII("Web Applications"); 50 test_path = test_path.AppendASCII("Web Applications");
49 EXPECT_EQ(test_path.value(), result.value()); 51 EXPECT_EQ(test_path.value(), result.value());
50 } 52 }
OLDNEW
« no previous file with comments | « chrome/browser/web_applications/web_app.cc ('k') | chrome/browser/web_resource/gpu_blacklist_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698