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

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

Issue 7042021: Check for integer overflow when validating API function arguments. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update copyright headers Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/v8_unit_test.h" 9 #include "chrome/test/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"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 77
78 TEST_F(JsonSchemaTest, TestString) { 78 TEST_F(JsonSchemaTest, TestString) {
79 TestFunction("testString"); 79 TestFunction("testString");
80 } 80 }
81 81
82 TEST_F(JsonSchemaTest, TestNumber) { 82 TEST_F(JsonSchemaTest, TestNumber) {
83 TestFunction("testNumber"); 83 TestFunction("testNumber");
84 } 84 }
85 85
86 TEST_F(JsonSchemaTest, TestIntegerBounds) {
87 TestFunction("testIntegerBounds");
88 }
89
86 TEST_F(JsonSchemaTest, TestType) { 90 TEST_F(JsonSchemaTest, TestType) {
87 TestFunction("testType"); 91 TestFunction("testType");
88 } 92 }
89 93
90 TEST_F(JsonSchemaTest, TestTypeReference) { 94 TEST_F(JsonSchemaTest, TestTypeReference) {
91 TestFunction("testTypeReference"); 95 TestFunction("testTypeReference");
92 } 96 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/window_open_apitest.cc ('k') | chrome/renderer/resources/json_schema.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698