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

Side by Side Diff: chrome/browser/bookmarks/bookmark_node_data_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 "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/message_loop.h" 6 #include "base/message_loop.h"
7 #include "base/string16.h" 7 #include "base/string16.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/bookmarks/bookmark_model.h" 9 #include "chrome/browser/bookmarks/bookmark_model.h"
10 #include "chrome/browser/bookmarks/bookmark_node_data.h" 10 #include "chrome/browser/bookmarks/bookmark_node_data.h"
11 #include "chrome/test/base/testing_profile.h" 11 #include "chrome/test/base/testing_profile.h"
12 #include "content/test/test_browser_thread.h" 12 #include "content/test/test_browser_thread.h"
13 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "ui/base/dragdrop/os_exchange_data.h" 15 #include "ui/base/dragdrop/os_exchange_data.h"
16 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" 16 #include "ui/base/dragdrop/os_exchange_data_provider_win.h"
17 17
18 using content::BrowserThread;
19
18 class BookmarkNodeDataTest : public testing::Test { 20 class BookmarkNodeDataTest : public testing::Test {
19 public: 21 public:
20 BookmarkNodeDataTest() 22 BookmarkNodeDataTest()
21 : ui_thread_(BrowserThread::UI, &loop_), 23 : ui_thread_(BrowserThread::UI, &loop_),
22 file_thread_(BrowserThread::FILE, &loop_) { } 24 file_thread_(BrowserThread::FILE, &loop_) { }
23 25
24 private: 26 private:
25 MessageLoop loop_; 27 MessageLoop loop_;
26 content::TestBrowserThread ui_thread_; 28 content::TestBrowserThread ui_thread_;
27 content::TestBrowserThread file_thread_; 29 content::TestBrowserThread file_thread_;
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // And make sure we get the node back. 236 // And make sure we get the node back.
235 std::vector<const BookmarkNode*> read_nodes = read_data.GetNodes(&profile); 237 std::vector<const BookmarkNode*> read_nodes = read_data.GetNodes(&profile);
236 ASSERT_EQ(2, read_nodes.size()); 238 ASSERT_EQ(2, read_nodes.size());
237 EXPECT_TRUE(read_nodes[0] == folder); 239 EXPECT_TRUE(read_nodes[0] == folder);
238 EXPECT_TRUE(read_nodes[1] == url_node); 240 EXPECT_TRUE(read_nodes[1] == url_node);
239 241
240 // Asking for the first node should return NULL with more than one element 242 // Asking for the first node should return NULL with more than one element
241 // present. 243 // present.
242 EXPECT_TRUE(read_data.GetFirstNode(&profile) == NULL); 244 EXPECT_TRUE(read_data.GetFirstNode(&profile) == NULL);
243 } 245 }
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model_unittest.cc ('k') | chrome/browser/bookmarks/bookmark_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698