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

Side by Side Diff: extensions/shell/browser/shell_prefs_unittest.cc

Issue 1543053002: Switch to standard integer types in extensions/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-extensions-browser
Patch Set: Created 5 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 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 "extensions/shell/browser/shell_prefs.h" 5 #include "extensions/shell/browser/shell_prefs.h"
6 6
7 #include "base/macros.h"
7 #include "base/path_service.h" 8 #include "base/path_service.h"
8 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "build/build_config.h"
9 #include "components/user_prefs/user_prefs.h" 11 #include "components/user_prefs/user_prefs.h"
10 #include "content/public/test/test_browser_context.h" 12 #include "content/public/test/test_browser_context.h"
11 #include "content/public/test/test_browser_thread_bundle.h" 13 #include "content/public/test/test_browser_thread_bundle.h"
12 #include "extensions/common/extension_paths.h" 14 #include "extensions/common/extension_paths.h"
13 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
14 16
15 namespace extensions { 17 namespace extensions {
16 namespace { 18 namespace {
17 19
18 // A BrowserContext that uses a test data directory as its data path. 20 // A BrowserContext that uses a test data directory as its data path.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // User prefs from the file have been read correctly. 71 // User prefs from the file have been read correctly.
70 EXPECT_EQ("1.2.3.4", service->GetString("extensions.last_chrome_version")); 72 EXPECT_EQ("1.2.3.4", service->GetString("extensions.last_chrome_version"));
71 EXPECT_EQ(123, service->GetInteger("extensions.toolbarsize")); 73 EXPECT_EQ(123, service->GetInteger("extensions.toolbarsize"));
72 74
73 // The user prefs system has been initialized. 75 // The user prefs system has been initialized.
74 EXPECT_EQ(service.get(), user_prefs::UserPrefs::Get(&browser_context_)); 76 EXPECT_EQ(service.get(), user_prefs::UserPrefs::Get(&browser_context_));
75 } 77 }
76 78
77 } // namespace 79 } // namespace
78 } // namespace extensions 80 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_prefs.cc ('k') | extensions/shell/browser/shell_runtime_api_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698