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

Side by Side Diff: chrome/browser/bookmarks/bookmark_codec_unittest.cc

Issue 7616019: Reorganize chrome/test, part #9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | 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/file_path.h" 5 #include "base/file_path.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/bookmarks/bookmark_codec.h" 12 #include "chrome/browser/bookmarks/bookmark_codec.h"
13 #include "chrome/browser/bookmarks/bookmark_model.h" 13 #include "chrome/browser/bookmarks/bookmark_model.h"
14 #include "chrome/browser/bookmarks/bookmark_model_test_utils.h" 14 #include "chrome/browser/bookmarks/bookmark_model_test_utils.h"
15 #include "chrome/browser/bookmarks/bookmark_utils.h" 15 #include "chrome/browser/bookmarks/bookmark_utils.h"
16 #include "chrome/common/chrome_paths.h" 16 #include "chrome/common/chrome_paths.h"
17 #include "chrome/test/testing_browser_process_test.h" 17 #include "chrome/test/base/testing_browser_process_test.h"
18 #include "content/common/json_value_serializer.h" 18 #include "content/common/json_value_serializer.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 namespace { 21 namespace {
22 22
23 const char kUrl1Title[] = "url1"; 23 const char kUrl1Title[] = "url1";
24 const char kUrl1Url[] = "http://www.url1.com"; 24 const char kUrl1Url[] = "http://www.url1.com";
25 const char kUrl2Title[] = "url2"; 25 const char kUrl2Title[] = "url2";
26 const char kUrl2Url[] = "http://www.url2.com"; 26 const char kUrl2Url[] = "http://www.url2.com";
27 const char kUrl3Title[] = "url3"; 27 const char kUrl3Title[] = "url3";
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 EXPECT_EQ(BookmarkNode::FOLDER, child->type()); 330 EXPECT_EQ(BookmarkNode::FOLDER, child->type());
331 EXPECT_EQ(ASCIIToUTF16("Folder B"), child->GetTitle()); 331 EXPECT_EQ(ASCIIToUTF16("Folder B"), child->GetTitle());
332 ASSERT_EQ(1, child->child_count()); 332 ASSERT_EQ(1, child->child_count());
333 333
334 child = child->GetChild(0); 334 child = child->GetChild(0);
335 EXPECT_EQ(BookmarkNode::URL, child->type()); 335 EXPECT_EQ(BookmarkNode::URL, child->type());
336 EXPECT_EQ(ASCIIToUTF16("Get started with Google Chrome"), child->GetTitle()); 336 EXPECT_EQ(ASCIIToUTF16("Get started with Google Chrome"), child->GetTitle());
337 337
338 ASSERT_TRUE(decoded_model.synced_node() != NULL); 338 ASSERT_TRUE(decoded_model.synced_node() != NULL);
339 } 339 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698