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

Side by Side Diff: Source/core/platform/chromium/ClipboardChromiumTest.cpp

Issue 23672027: Rename OS(WINDOWS) to OS(WIN) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 20 matching lines...) Expand all
31 #include "config.h" 31 #include "config.h"
32 32
33 #include "core/platform/chromium/ClipboardChromium.h" 33 #include "core/platform/chromium/ClipboardChromium.h"
34 34
35 #include <gtest/gtest.h> 35 #include <gtest/gtest.h>
36 36
37 using namespace WebCore; 37 using namespace WebCore;
38 38
39 namespace { 39 namespace {
40 40
41 #if OS(WINDOWS) 41 #if OS(WIN)
42 const char invalidCharacters[] = "\x00/\\:*?\"<>|"; 42 const char invalidCharacters[] = "\x00/\\:*?\"<>|";
43 #else 43 #else
44 const char invalidCharacters[] = 44 const char invalidCharacters[] =
45 "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" 45 "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
46 "\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" 46 "\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
47 "\x7f/"; 47 "\x7f/";
48 #endif 48 #endif
49 const char longString[] = 49 const char longString[] =
50 "0,1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6765,10946, 17711,28657,46368," 50 "0,1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6765,10946, 17711,28657,46368,"
51 "75025,121393,196418,317811,514229,832040,1346269,2178309,3524578,5702887,92 27465,14930352"; 51 "75025,121393,196418,317811,514229,832040,1346269,2178309,3524578,5702887,92 27465,14930352";
(...skipping 28 matching lines...) Expand all
80 { 80 {
81 String name = String(longString) + longString; 81 String name = String(longString) + longString;
82 String extension = longString; 82 String extension = longString;
83 ClipboardChromium::validateFilename(name, extension); 83 ClipboardChromium::validateFilename(name, extension);
84 EXPECT_EQ("0,1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6 765,109", name); 84 EXPECT_EQ("0,1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6 765,109", name);
85 EXPECT_EQ(longString, extension); 85 EXPECT_EQ(longString, extension);
86 EXPECT_EQ(254u, name.length() + extension.length()); 86 EXPECT_EQ(254u, name.length() + extension.length());
87 } 87 }
88 88
89 } // anonymous namespace 89 } // anonymous namespace
OLDNEW
« no previous file with comments | « Source/core/platform/chromium/ClipboardChromium.cpp ('k') | Source/core/platform/chromium/ClipboardUtilitiesChromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698