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

Side by Side Diff: third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp

Issue 2803613002: Rewrite references to "wtf/" to "platform/wtf/" in platform/testing. (Closed)
Patch Set: Fix compile error. (Why did this work before?) Created 3 years, 8 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 16 matching lines...) Expand all
27 27
28 #include "base/files/file_path.h" 28 #include "base/files/file_path.h"
29 #include "base/files/file_util.h" 29 #include "base/files/file_util.h"
30 #include "base/message_loop/message_loop.h" 30 #include "base/message_loop/message_loop.h"
31 #include "base/path_service.h" 31 #include "base/path_service.h"
32 #include "base/run_loop.h" 32 #include "base/run_loop.h"
33 #include "platform/SharedBuffer.h" 33 #include "platform/SharedBuffer.h"
34 #include "platform/Timer.h" 34 #include "platform/Timer.h"
35 #include "platform/WebTaskRunner.h" 35 #include "platform/WebTaskRunner.h"
36 #include "platform/heap/Handle.h" 36 #include "platform/heap/Handle.h"
37 #include "platform/wtf/text/StringUTF8Adaptor.h"
37 #include "public/platform/FilePathConversion.h" 38 #include "public/platform/FilePathConversion.h"
38 #include "public/platform/Platform.h" 39 #include "public/platform/Platform.h"
39 #include "public/platform/WebString.h" 40 #include "public/platform/WebString.h"
40 #include "public/platform/WebThread.h" 41 #include "public/platform/WebThread.h"
41 #include "public/platform/WebTraceLocation.h" 42 #include "public/platform/WebTraceLocation.h"
42 #include "wtf/text/StringUTF8Adaptor.h"
43 43
44 namespace blink { 44 namespace blink {
45 namespace testing { 45 namespace testing {
46 46
47 namespace { 47 namespace {
48 48
49 base::FilePath blinkRootFilePath() { 49 base::FilePath blinkRootFilePath() {
50 base::FilePath path; 50 base::FilePath path;
51 base::PathService::Get(base::DIR_SOURCE_ROOT, &path); 51 base::PathService::Get(base::DIR_SOURCE_ROOT, &path);
52 return base::MakeAbsoluteFilePath( 52 return base::MakeAbsoluteFilePath(
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 PassRefPtr<SharedBuffer> readFromFile(const String& path) { 105 PassRefPtr<SharedBuffer> readFromFile(const String& path) {
106 base::FilePath filePath = blink::WebStringToFilePath(path); 106 base::FilePath filePath = blink::WebStringToFilePath(path);
107 std::string buffer; 107 std::string buffer;
108 base::ReadFileToString(filePath, &buffer); 108 base::ReadFileToString(filePath, &buffer);
109 return SharedBuffer::create(buffer.data(), buffer.size()); 109 return SharedBuffer::create(buffer.data(), buffer.size());
110 } 110 }
111 111
112 } // namespace testing 112 } // namespace testing
113 } // namespace blink 113 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698