| Index: chrome/browser/extensions/error_console/error_console_unittest.cc
|
| diff --git a/chrome/browser/extensions/error_console/error_console_unittest.cc b/chrome/browser/extensions/error_console/error_console_unittest.cc
|
| index 62b5320d1808498893a09b301a3544f1a15f9c83..380ce544323f62fca5c86bca9bcf9548fefe2885 100644
|
| --- a/chrome/browser/extensions/error_console/error_console_unittest.cc
|
| +++ b/chrome/browser/extensions/error_console/error_console_unittest.cc
|
| @@ -7,9 +7,11 @@
|
| #include "base/json/json_writer.h"
|
| #include "base/logging.h"
|
| #include "base/memory/scoped_ptr.h"
|
| +#include "base/prefs/pref_service.h"
|
| #include "base/strings/string16.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| +#include "chrome/common/pref_names.h"
|
| #include "chrome/test/base/testing_profile.h"
|
| #include "content/public/common/url_constants.h"
|
| #include "extensions/browser/extension_error.h"
|
| @@ -61,6 +63,12 @@ class ErrorConsoleUnitTest : public testing::Test {
|
| }
|
| virtual ~ErrorConsoleUnitTest() { }
|
|
|
| + virtual void SetUp() OVERRIDE {
|
| + testing::Test::SetUp();
|
| + // Errors are only kept if we have Developer Mode enabled.
|
| + profile_->GetPrefs()->SetBoolean(prefs::kExtensionsUIDeveloperMode, true);
|
| + }
|
| +
|
| protected:
|
| scoped_ptr<TestingProfile> profile_;
|
| ErrorConsole* error_console_;
|
| @@ -77,7 +85,7 @@ TEST_F(ErrorConsoleUnitTest, AddAndRemoveErrors) {
|
| // Populate with both incognito and non-incognito errors (evenly distributed).
|
| for (size_t i = 0; i < kNumTotalErrors; ++i) {
|
| error_console_->ReportError(
|
| - CreateNewRuntimeError(i % 2 == 0, kId, string16()));
|
| + CreateNewRuntimeError(i % 2 == 0, kId, base::UintToString16(i)));
|
| }
|
|
|
| // There should only be one entry in the map, since errors are stored in lists
|
|
|