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

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

Issue 348563003: Move BookmarkCodec into bookmarks namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/bookmarks/browser/bookmark_codec.h" 5 #include "components/bookmarks/browser/bookmark_codec.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/json/json_file_value_serializer.h" 9 #include "base/json/json_file_value_serializer.h"
10 #include "base/json/json_string_value_serializer.h" 10 #include "base/json/json_string_value_serializer.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "components/bookmarks/browser/bookmark_model.h" 16 #include "components/bookmarks/browser/bookmark_model.h"
17 #include "components/bookmarks/test/test_bookmark_client.h" 17 #include "components/bookmarks/test/test_bookmark_client.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 using base::ASCIIToUTF16; 20 using base::ASCIIToUTF16;
21 21
22 namespace bookmarks {
22 namespace { 23 namespace {
23 24
24 const char kUrl1Title[] = "url1"; 25 const char kUrl1Title[] = "url1";
25 const char kUrl1Url[] = "http://www.url1.com"; 26 const char kUrl1Url[] = "http://www.url1.com";
26 const char kUrl2Title[] = "url2"; 27 const char kUrl2Title[] = "url2";
27 const char kUrl2Url[] = "http://www.url2.com"; 28 const char kUrl2Url[] = "http://www.url2.com";
28 const char kUrl3Title[] = "url3"; 29 const char kUrl3Title[] = "url3";
29 const char kUrl3Url[] = "http://www.url3.com"; 30 const char kUrl3Url[] = "http://www.url3.com";
30 const char kUrl4Title[] = "url4"; 31 const char kUrl4Title[] = "url4";
31 const char kUrl4Url[] = "http://www.url4.com"; 32 const char kUrl4Url[] = "http://www.url4.com";
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 model->root_node()->GetMetaInfo(kSyncTransactionVersionKey, &meta_value)); 467 model->root_node()->GetMetaInfo(kSyncTransactionVersionKey, &meta_value));
467 EXPECT_FALSE( 468 EXPECT_FALSE(
468 bbn->GetChild(1)->GetMetaInfo(kSyncTransactionVersionKey, &meta_value)); 469 bbn->GetChild(1)->GetMetaInfo(kSyncTransactionVersionKey, &meta_value));
469 EXPECT_TRUE(bbn->GetChild(0)->GetMetaInfo(kNormalKey, &meta_value)); 470 EXPECT_TRUE(bbn->GetChild(0)->GetMetaInfo(kNormalKey, &meta_value));
470 EXPECT_EQ("value", meta_value); 471 EXPECT_EQ("value", meta_value);
471 EXPECT_TRUE(bbn->GetChild(1)->GetMetaInfo(kNormalKey, &meta_value)); 472 EXPECT_TRUE(bbn->GetChild(1)->GetMetaInfo(kNormalKey, &meta_value));
472 EXPECT_EQ("value2", meta_value); 473 EXPECT_EQ("value2", meta_value);
473 EXPECT_TRUE(bbn->GetChild(0)->GetMetaInfo(kNestedKey, &meta_value)); 474 EXPECT_TRUE(bbn->GetChild(0)->GetMetaInfo(kNestedKey, &meta_value));
474 EXPECT_EQ("value3", meta_value); 475 EXPECT_EQ("value3", meta_value);
475 } 476 }
477
478 } // namespace bookmarks
OLDNEW
« no previous file with comments | « components/bookmarks/browser/bookmark_codec.cc ('k') | components/bookmarks/browser/bookmark_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698