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

Side by Side Diff: trunk/src/chrome/service/service_process_prefs_unittest.cc

Issue 14985007: Revert 198844 "Move sequenced_task_runner to base/task" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <string> 5 #include <string>
6 6
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/task/sequenced_task_runner.h" 9 #include "base/sequenced_task_runner.h"
10 #include "chrome/service/service_process_prefs.h" 10 #include "chrome/service/service_process_prefs.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 class ServiceProcessPrefsTest : public testing::Test { 14 class ServiceProcessPrefsTest : public testing::Test {
15 protected: 15 protected:
16 virtual void SetUp() OVERRIDE { 16 virtual void SetUp() OVERRIDE {
17 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); 17 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
18 18
19 prefs_.reset(new ServiceProcessPrefs( 19 prefs_.reset(new ServiceProcessPrefs(
(...skipping 17 matching lines...) Expand all
37 prefs_->SetBoolean("testb", true); 37 prefs_->SetBoolean("testb", true);
38 prefs_->SetString("tests", "testvalue"); 38 prefs_->SetString("tests", "testvalue");
39 prefs_->WritePrefs(); 39 prefs_->WritePrefs();
40 message_loop_.RunUntilIdle(); 40 message_loop_.RunUntilIdle();
41 prefs_->SetBoolean("testb", false); // overwrite 41 prefs_->SetBoolean("testb", false); // overwrite
42 prefs_->SetString("tests", std::string()); // overwrite 42 prefs_->SetString("tests", std::string()); // overwrite
43 prefs_->ReadPrefs(); 43 prefs_->ReadPrefs();
44 EXPECT_EQ(prefs_->GetBoolean("testb", false), true); 44 EXPECT_EQ(prefs_->GetBoolean("testb", false), true);
45 EXPECT_EQ(prefs_->GetString("tests", std::string()), "testvalue"); 45 EXPECT_EQ(prefs_->GetString("tests", std::string()), "testvalue");
46 } 46 }
OLDNEW
« no previous file with comments | « trunk/src/chrome/browser/webdata/web_data_service.h ('k') | trunk/src/chromeos/ime/ibus_daemon_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698