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

Side by Side Diff: chrome/browser/extensions/error_console/error_console_unittest.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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/browser/extensions/error_console/error_console.h" 5 #include "chrome/browser/extensions/error_console/error_console.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/prefs/pref_service.h"
13 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
14 #include "chrome/common/extensions/features/feature_channel.h" 13 #include "chrome/common/extensions/features/feature_channel.h"
15 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
16 #include "chrome/test/base/testing_profile.h" 15 #include "chrome/test/base/testing_profile.h"
17 #include "components/crx_file/id_util.h" 16 #include "components/crx_file/id_util.h"
17 #include "components/prefs/pref_service.h"
18 #include "components/version_info/version_info.h" 18 #include "components/version_info/version_info.h"
19 #include "content/public/test/test_browser_thread_bundle.h" 19 #include "content/public/test/test_browser_thread_bundle.h"
20 #include "extensions/browser/extension_error.h" 20 #include "extensions/browser/extension_error.h"
21 #include "extensions/browser/extension_error_test_util.h" 21 #include "extensions/browser/extension_error_test_util.h"
22 #include "extensions/browser/extension_registry.h" 22 #include "extensions/browser/extension_registry.h"
23 #include "extensions/common/constants.h" 23 #include "extensions/common/constants.h"
24 #include "extensions/common/extension_builder.h" 24 #include "extensions/common/extension_builder.h"
25 #include "extensions/common/feature_switch.h" 25 #include "extensions/common/feature_switch.h"
26 #include "extensions/common/value_builder.h" 26 #include "extensions/common/value_builder.h"
27 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 error_console_->ReportError( 272 error_console_->ReportError(
273 CreateNewRuntimeError(packed_extension->id(), "runtime error 4")); 273 CreateNewRuntimeError(packed_extension->id(), "runtime error 4"));
274 EXPECT_EQ(2u, // We should still have the first two errors. 274 EXPECT_EQ(2u, // We should still have the first two errors.
275 error_console_->GetErrorsForExtension( 275 error_console_->GetErrorsForExtension(
276 unpacked_extension->id()).size()); 276 unpacked_extension->id()).size());
277 EXPECT_FALSE(error_console_->IsReportingEnabledForExtension( 277 EXPECT_FALSE(error_console_->IsReportingEnabledForExtension(
278 unpacked_extension->id())); 278 unpacked_extension->id()));
279 } 279 }
280 280
281 } // namespace extensions 281 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698