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

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

Issue 2137463003: [Extensions] Move Feature channel code into //extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test fix Created 4 years, 5 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 <memory> 9 #include <memory>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
14 #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"
18 #include "components/prefs/pref_service.h" 17 #include "components/prefs/pref_service.h"
19 #include "components/version_info/version_info.h" 18 #include "components/version_info/version_info.h"
20 #include "content/public/test/test_browser_thread_bundle.h" 19 #include "content/public/test/test_browser_thread_bundle.h"
21 #include "extensions/browser/extension_error.h" 20 #include "extensions/browser/extension_error.h"
22 #include "extensions/browser/extension_error_test_util.h" 21 #include "extensions/browser/extension_error_test_util.h"
23 #include "extensions/browser/extension_registry.h" 22 #include "extensions/browser/extension_registry.h"
24 #include "extensions/common/constants.h" 23 #include "extensions/common/constants.h"
25 #include "extensions/common/extension_builder.h" 24 #include "extensions/common/extension_builder.h"
26 #include "extensions/common/feature_switch.h" 25 #include "extensions/common/feature_switch.h"
26 #include "extensions/common/features/feature_channel.h"
27 #include "extensions/common/value_builder.h" 27 #include "extensions/common/value_builder.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 29
30 namespace extensions { 30 namespace extensions {
31 31
32 using error_test_util::CreateNewManifestError; 32 using error_test_util::CreateNewManifestError;
33 using error_test_util::CreateNewRuntimeError; 33 using error_test_util::CreateNewRuntimeError;
34 34
35 class ErrorConsoleUnitTest : public testing::Test { 35 class ErrorConsoleUnitTest : public testing::Test {
36 public: 36 public:
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 error_console_->ReportError( 273 error_console_->ReportError(
274 CreateNewRuntimeError(packed_extension->id(), "runtime error 4")); 274 CreateNewRuntimeError(packed_extension->id(), "runtime error 4"));
275 EXPECT_EQ(2u, // We should still have the first two errors. 275 EXPECT_EQ(2u, // We should still have the first two errors.
276 error_console_->GetErrorsForExtension( 276 error_console_->GetErrorsForExtension(
277 unpacked_extension->id()).size()); 277 unpacked_extension->id()).size());
278 EXPECT_FALSE(error_console_->IsReportingEnabledForExtension( 278 EXPECT_FALSE(error_console_->IsReportingEnabledForExtension(
279 unpacked_extension->id())); 279 unpacked_extension->id()));
280 } 280 }
281 281
282 } // namespace extensions 282 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/error_console/error_console.cc ('k') | chrome/browser/extensions/extension_browsertest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698