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

Side by Side Diff: chrome/browser/sync/util/user_settings_unittest.cc

Issue 495001: sync: Fix license copyright text. (Closed)
Patch Set: " Created 11 years 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 entry. 3 // found in the LICENSE file.
4 4
5 #include <string> 5 #include <string>
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/scoped_temp_dir.h" 8 #include "base/scoped_temp_dir.h"
9 #include "chrome/browser/sync/syncable/directory_manager.h" 9 #include "chrome/browser/sync/syncable/directory_manager.h"
10 #include "chrome/browser/sync/util/character_set_converters.h" 10 #include "chrome/browser/sync/util/character_set_converters.h"
11 #include "chrome/browser/sync/util/user_settings.h" 11 #include "chrome/browser/sync/util/user_settings.h"
12 #include "chrome/browser/sync/util/query_helpers.h" 12 #include "chrome/browser/sync/util/query_helpers.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 EXPECT_FALSE(file_util::PathExists(old_style_sync_data_path())); 100 EXPECT_FALSE(file_util::PathExists(old_style_sync_data_path()));
101 101
102 FilePath new_style_path = temp_dir.path().Append( 102 FilePath new_style_path = temp_dir.path().Append(
103 syncable::DirectoryManager::GetSyncDataDatabaseFilename()); 103 syncable::DirectoryManager::GetSyncDataDatabaseFilename());
104 104
105 std::string contents; 105 std::string contents;
106 ASSERT_TRUE(file_util::ReadFileToString(new_style_path, &contents)); 106 ASSERT_TRUE(file_util::ReadFileToString(new_style_path, &contents));
107 EXPECT_TRUE(sync_data() == contents); 107 EXPECT_TRUE(sync_data() == contents);
108 sqlite3_close(handle); 108 sqlite3_close(handle);
109 } 109 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/util/user_settings_posix.cc ('k') | chrome/browser/sync/util/user_settings_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698