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

Side by Side Diff: chrome/browser/extensions/shell_window_geometry_cache_unittest.cc

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/prefs/mock_pref_change_callback.h"
6 #include "base/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
7 #include "chrome/browser/extensions/extension_prefs.h" 8 #include "chrome/browser/extensions/extension_prefs.h"
8 #include "chrome/browser/extensions/shell_window_geometry_cache.h" 9 #include "chrome/browser/extensions/shell_window_geometry_cache.h"
9 #include "chrome/browser/extensions/test_extension_prefs.h" 10 #include "chrome/browser/extensions/test_extension_prefs.h"
10 #include "chrome/browser/prefs/mock_pref_change_callback.h"
11 #include "chrome/browser/prefs/pref_service_syncable.h" 11 #include "chrome/browser/prefs/pref_service_syncable.h"
12 #include "chrome/test/base/testing_profile.h" 12 #include "chrome/test/base/testing_profile.h"
13 #include "content/public/test/test_browser_thread.h" 13 #include "content/public/test/test_browser_thread.h"
14 #include "content/public/test/test_utils.h" 14 #include "content/public/test/test_utils.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 namespace { 17 namespace {
18 static const char kWindowId[] = "windowid"; 18 static const char kWindowId[] = "windowid";
19 static const char kWindowId2[] = "windowid2"; 19 static const char kWindowId2[] = "windowid2";
20 20
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // The first added window should no longer have cached geometry. 218 // The first added window should no longer have cached geometry.
219 EXPECT_FALSE(cache_->GetGeometry(extension_id, "window_0", &bounds)); 219 EXPECT_FALSE(cache_->GetGeometry(extension_id, "window_0", &bounds));
220 // All other windows should still exist. 220 // All other windows should still exist.
221 for (size_t i = 1; i < ShellWindowGeometryCache::kMaxCachedWindows + 1; ++i) { 221 for (size_t i = 1; i < ShellWindowGeometryCache::kMaxCachedWindows + 1; ++i) {
222 std::string window_id = "window_" + base::IntToString(i); 222 std::string window_id = "window_" + base::IntToString(i);
223 EXPECT_TRUE(cache_->GetGeometry(extension_id, window_id, &bounds)); 223 EXPECT_TRUE(cache_->GetGeometry(extension_id, window_id, &bounds));
224 } 224 }
225 } 225 }
226 226
227 } // namespace extensions 227 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/plugin_apitest.cc ('k') | chrome/browser/extensions/standard_management_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698