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

Side by Side Diff: chrome/common/importer/firefox_importer_utils_unittest.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/common/importer/firefox_importer_utils.h" 5 #include "chrome/common/importer/firefox_importer_utils.h"
6 6
7 #include <stddef.h>
8
7 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
8 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
11 #include "base/macros.h"
9 #include "base/values.h" 12 #include "base/values.h"
10 #include "chrome/grit/generated_resources.h" 13 #include "chrome/grit/generated_resources.h"
11 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
12 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
13 16
14 namespace { 17 namespace {
15 18
16 struct GetPrefsJsValueCase { 19 struct GetPrefsJsValueCase {
17 std::string prefs_content; 20 std::string prefs_content;
18 std::string pref_name; 21 std::string pref_name;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 153
151 base::DictionaryValue default_second; 154 base::DictionaryValue default_second;
152 default_second.SetString("Profile0.Path", "first"); 155 default_second.SetString("Profile0.Path", "first");
153 default_second.SetString("Profile0.IsRelative", "0"); 156 default_second.SetString("Profile0.IsRelative", "0");
154 default_second.SetString("Profile1.Path", "second"); 157 default_second.SetString("Profile1.Path", "second");
155 default_second.SetString("Profile1.IsRelative", "0"); 158 default_second.SetString("Profile1.IsRelative", "0");
156 default_second.SetString("Profile1.Default", "1"); 159 default_second.SetString("Profile1.Default", "1");
157 EXPECT_EQ("second", 160 EXPECT_EQ("second",
158 GetFirefoxProfilePathFromDictionary(default_second).MaybeAsASCII()); 161 GetFirefoxProfilePathFromDictionary(default_second).MaybeAsASCII());
159 } 162 }
OLDNEW
« no previous file with comments | « chrome/common/importer/firefox_importer_utils.cc ('k') | chrome/common/importer/importer_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698