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

Side by Side Diff: chrome/renderer/extensions/json_schema_unittest.cc

Issue 10821133: Move c/r/extensions/* into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for cq Created 8 years, 4 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 (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/file_util.h" 5 #include "base/file_util.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "chrome/common/chrome_paths.h" 8 #include "chrome/common/chrome_paths.h"
9 #include "chrome/test/base/v8_unit_test.h" 9 #include "chrome/test/base/v8_unit_test.h"
10 #include "grit/renderer_resources.h" 10 #include "grit/renderer_resources.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "ui/base/layout.h" 12 #include "ui/base/layout.h"
13 #include "ui/base/resource/resource_bundle.h" 13 #include "ui/base/resource/resource_bundle.h"
14 14
15 static const char kJsonSchema[] = "json_schema.js"; 15 static const char kJsonSchema[] = "json_schema.js";
16 static const char kJsonSchemaTest[] = "json_schema_test.js"; 16 static const char kJsonSchemaTest[] = "json_schema_test.js";
17 17
18 namespace extensions {
19
18 class JsonSchemaTest : public V8UnitTest { 20 class JsonSchemaTest : public V8UnitTest {
19 public: 21 public:
20 JsonSchemaTest() {} 22 JsonSchemaTest() {}
21 23
22 virtual void SetUp() { 24 virtual void SetUp() {
23 V8UnitTest::SetUp(); 25 V8UnitTest::SetUp();
24 26
25 // Add the json schema code to the context. 27 // Add the json schema code to the context.
26 std::string code = ResourceBundle::GetSharedInstance().GetRawDataResource( 28 std::string code = ResourceBundle::GetSharedInstance().GetRawDataResource(
27 IDR_JSON_SCHEMA_JS, ui::SCALE_FACTOR_NONE).as_string(); 29 IDR_JSON_SCHEMA_JS, ui::SCALE_FACTOR_NONE).as_string();
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 TestFunction("testGetAllTypesForSchema"); 101 TestFunction("testGetAllTypesForSchema");
100 } 102 }
101 103
102 TEST_F(JsonSchemaTest, TestIsValidSchemaType) { 104 TEST_F(JsonSchemaTest, TestIsValidSchemaType) {
103 TestFunction("testIsValidSchemaType"); 105 TestFunction("testIsValidSchemaType");
104 } 106 }
105 107
106 TEST_F(JsonSchemaTest, TestCheckSchemaOverlap) { 108 TEST_F(JsonSchemaTest, TestCheckSchemaOverlap) {
107 TestFunction("testCheckSchemaOverlap"); 109 TestFunction("testCheckSchemaOverlap");
108 } 110 }
111
112 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/extension_resource_request_policy.cc ('k') | chrome/renderer/extensions/miscellaneous_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698