metrics: Update to build against libchrome-271506
BUG=chromium:375032 TEST=`FEATURES=test emerge-$BOARD platform2` TEST=Trybot runs on paladin, release, and chromiumos-sdk builders. Change-Id: Icb524d3fd4001ebc36edc84306ea70db70f7599b Reviewed-on: https://chromium-review.googlesource.com/200519 Reviewed-by: Luigi Semenzato <semenzato@chromium.org> Reviewed-by: Daniel Erat <derat@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org> Tested-by: Ben Chan <benchan@chromium.org> Commit-Queue: Ben Chan <benchan@chromium.org>
This commit is contained in:
parent
65dd4c61b8
commit
8c3cd41620
3 changed files with 7 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
'variables': {
|
||||
'libbase_ver': 242728,
|
||||
'libbase_ver': 271506,
|
||||
},
|
||||
'target_defaults': {
|
||||
'dependencies': [
|
||||
|
|
|
@ -172,8 +172,8 @@ class MetricsDaemonTest : public testing::Test {
|
|||
std::string frequency_string = StringPrintf("%d\n", frequency);
|
||||
int frequency_string_length = frequency_string.length();
|
||||
EXPECT_EQ(frequency_string.length(),
|
||||
file_util::WriteFile(path, frequency_string.c_str(),
|
||||
frequency_string_length));
|
||||
base::WriteFile(path, frequency_string.c_str(),
|
||||
frequency_string_length));
|
||||
}
|
||||
|
||||
// The MetricsDaemon under test.
|
||||
|
@ -193,7 +193,7 @@ TEST_F(MetricsDaemonTest, CheckSystemCrash) {
|
|||
EXPECT_FALSE(daemon_.CheckSystemCrash(kKernelCrashDetected));
|
||||
|
||||
base::FilePath crash_detected(kKernelCrashDetected);
|
||||
file_util::WriteFile(crash_detected, "", 0);
|
||||
base::WriteFile(crash_detected, "", 0);
|
||||
EXPECT_TRUE(base::PathExists(crash_detected));
|
||||
EXPECT_TRUE(daemon_.CheckSystemCrash(kKernelCrashDetected));
|
||||
EXPECT_FALSE(base::PathExists(crash_detected));
|
||||
|
|
|
@ -70,9 +70,9 @@ TEST_F(MetricsLibraryTest, IsDeviceMounted) {
|
|||
buffer,
|
||||
1,
|
||||
&result));
|
||||
ASSERT_TRUE(file_util::WriteFile(base::FilePath(kTestMounts),
|
||||
kTestContents,
|
||||
strlen(kTestContents)));
|
||||
ASSERT_TRUE(base::WriteFile(base::FilePath(kTestMounts),
|
||||
kTestContents,
|
||||
strlen(kTestContents)));
|
||||
EXPECT_FALSE(lib_.IsDeviceMounted("guestfs",
|
||||
kTestMounts,
|
||||
buffer,
|
||||
|
|
Loading…
Reference in a new issue