| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "storage/common/database/database_identifier.h" | 5 #include "storage/common/database/database_identifier.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 TestValidOriginIdentifier(false, ""); | 278 TestValidOriginIdentifier(false, ""); |
| 279 TestValidOriginIdentifier(false, "bad..id"); | 279 TestValidOriginIdentifier(false, "bad..id"); |
| 280 TestValidOriginIdentifier(false, "bad/id"); | 280 TestValidOriginIdentifier(false, "bad/id"); |
| 281 TestValidOriginIdentifier(false, "bad\\id"); | 281 TestValidOriginIdentifier(false, "bad\\id"); |
| 282 TestValidOriginIdentifier(false, "http_bad:0_2"); | 282 TestValidOriginIdentifier(false, "http_bad:0_2"); |
| 283 TestValidOriginIdentifier(false, std::string("bad\0id", 6)); | 283 TestValidOriginIdentifier(false, std::string("bad\0id", 6)); |
| 284 } | 284 } |
| 285 | 285 |
| 286 } // namespace | 286 } // namespace |
| 287 } // namespace content | 287 } // namespace content |
| OLD | NEW |