forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update mojo sdk to rev a05bfef8096006056b2fff78092faf14d1319782
Reland which fixes a clang/win compile error. BUG=None TBR=jam@chromium.org Review URL: https://codereview.chromium.org/1217443018 Cr-Commit-Position: refs/heads/master@{#337766}
- Loading branch information
Showing
171 changed files
with
1,937 additions
and
1,008 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright 2015 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
source_set("test_support") { | ||
sources = [ | ||
"test_utils.h", | ||
"test_utils_posix.cc", | ||
"test_utils_win.cc", | ||
] | ||
|
||
public_deps = [ | ||
"//base", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright 2015 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef MOJO_TEST_TEST_UTILS_H_ | ||
#define MOJO_TEST_TEST_UTILS_H_ | ||
|
||
#include <string> | ||
|
||
#include "base/files/file_path.h" | ||
|
||
namespace mojo { | ||
namespace test { | ||
|
||
// Returns the path to the mojom js bindings file. | ||
base::FilePath GetFilePathForJSResource(const std::string& path); | ||
|
||
} // namespace test | ||
} // namespace mojo | ||
|
||
#endif // MOJO_TEST_TEST_UTILS_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright 2015 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "mojo/test/test_utils.h" | ||
|
||
#include "base/base_paths.h" | ||
#include "base/path_service.h" | ||
|
||
namespace mojo { | ||
namespace test { | ||
|
||
base::FilePath GetFilePathForJSResource(const std::string& path) { | ||
std::string binding_path = "gen/" + path + ".js"; | ||
base::FilePath exe_dir; | ||
PathService::Get(base::DIR_EXE, &exe_dir); | ||
return exe_dir.AppendASCII(binding_path); | ||
} | ||
|
||
} // namespace test | ||
} // namespace mojo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright 2015 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "mojo/test/test_utils.h" | ||
|
||
#include "base/base_paths.h" | ||
#include "base/path_service.h" | ||
#include "base/strings/string_util.h" | ||
namespace mojo { | ||
namespace test { | ||
|
||
base::FilePath GetFilePathForJSResource(const std::string& path) { | ||
std::string binding_path = "gen/" + path + ".js"; | ||
base::ReplaceChars(binding_path, "//", "\\", &binding_path); | ||
base::FilePath exe_dir; | ||
PathService::Get(base::DIR_EXE, &exe_dir); | ||
return exe_dir.AppendASCII(binding_path); | ||
} | ||
|
||
} // namespace test | ||
} // namespace mojo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.