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

Side by Side Diff: extensions/browser/file_highlighter_unittest.cc

Issue 23624002: Add UI for RuntimeErrors in the ErrorConsole (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dc_ec_merge
Patch Set: Created 7 years, 3 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 "extensions/browser/manifest_highlighter.h" 5 #include "extensions/browser/file_highlighter.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 14
15 namespace { 15 namespace {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 EXPECT_EQ(kFeatureWithComment, feature_with_comment.GetFeature()); 89 EXPECT_EQ(kFeatureWithComment, feature_with_comment.GetFeature());
90 90
91 // Check with non-ascii characters. 91 // Check with non-ascii characters.
92 const char kInternationalFeature[] = "\"international_key\": \"還是不要\""; 92 const char kInternationalFeature[] = "\"international_key\": \"還是不要\"";
93 ManifestHighlighter international_feature( 93 ManifestHighlighter international_feature(
94 kManifest, "international_key", EmptyString()); 94 kManifest, "international_key", EmptyString());
95 EXPECT_EQ(kInternationalFeature, international_feature.GetFeature()); 95 EXPECT_EQ(kInternationalFeature, international_feature.GetFeature());
96 } 96 }
97 97
98 } // namespace extensions 98 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698