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

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_editor_view_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 <string> 5 #include <string>
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.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/bookmarks/bookmark_model.h" 10 #include "chrome/browser/bookmarks/bookmark_model.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/ui/views/bookmarks/bookmark_editor_view.h" 12 #include "chrome/browser/ui/views/bookmarks/bookmark_editor_view.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 base::Time; 17 using base::Time;
18 using base::TimeDelta; 18 using base::TimeDelta;
19 using content::BrowserThread;
19 20
20 // Base class for bookmark editor tests. Creates a BookmarkModel and populates 21 // Base class for bookmark editor tests. Creates a BookmarkModel and populates
21 // it with test data. 22 // it with test data.
22 class BookmarkEditorViewTest : public testing::Test { 23 class BookmarkEditorViewTest : public testing::Test {
23 public: 24 public:
24 BookmarkEditorViewTest() 25 BookmarkEditorViewTest()
25 : ui_thread_(BrowserThread::UI, &message_loop_), 26 : ui_thread_(BrowserThread::UI, &message_loop_),
26 file_thread_(BrowserThread::FILE, &message_loop_), 27 file_thread_(BrowserThread::FILE, &message_loop_),
27 model_(NULL) { 28 model_(NULL) {
28 } 29 }
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 EXPECT_EQ(BookmarkNode::FOLDER, new_node->type()); 371 EXPECT_EQ(BookmarkNode::FOLDER, new_node->type());
371 EXPECT_EQ(ASCIIToUTF16("new_F"), new_node->GetTitle()); 372 EXPECT_EQ(ASCIIToUTF16("new_F"), new_node->GetTitle());
372 // The node should have one child. 373 // The node should have one child.
373 ASSERT_EQ(1, new_node->child_count()); 374 ASSERT_EQ(1, new_node->child_count());
374 const BookmarkNode* new_child = new_node->GetChild(0); 375 const BookmarkNode* new_child = new_node->GetChild(0);
375 // Make sure the child url/title match. 376 // Make sure the child url/title match.
376 EXPECT_EQ(BookmarkNode::URL, new_child->type()); 377 EXPECT_EQ(BookmarkNode::URL, new_child->type());
377 EXPECT_EQ(WideToUTF16Hack(details.urls[0].second), new_child->GetTitle()); 378 EXPECT_EQ(WideToUTF16Hack(details.urls[0].second), new_child->GetTitle());
378 EXPECT_EQ(details.urls[0].first, new_child->url()); 379 EXPECT_EQ(details.urls[0].first, new_child->url());
379 } 380 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_context_menu_test.cc ('k') | chrome/browser/ui/views/file_manager_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698