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

Side by Side Diff: chrome/browser/value_store/value_store_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 "chrome/browser/value_store/value_store_unittest.h" 5 #include "chrome/browser/value_store/value_store_unittest.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 ValueStoreTest::ValueStoreTest() 126 ValueStoreTest::ValueStoreTest()
127 : key1_("foo"), 127 : key1_("foo"),
128 key2_("bar"), 128 key2_("bar"),
129 key3_("baz"), 129 key3_("baz"),
130 empty_dict_(new DictionaryValue()), 130 empty_dict_(new DictionaryValue()),
131 dict1_(new DictionaryValue()), 131 dict1_(new DictionaryValue()),
132 dict3_(new DictionaryValue()), 132 dict3_(new DictionaryValue()),
133 dict12_(new DictionaryValue()), 133 dict12_(new DictionaryValue()),
134 dict123_(new DictionaryValue()), 134 dict123_(new DictionaryValue()),
135 ui_thread_(BrowserThread::UI, MessageLoop::current()), 135 ui_thread_(BrowserThread::UI, base::MessageLoop::current()),
136 file_thread_(BrowserThread::FILE, MessageLoop::current()) { 136 file_thread_(BrowserThread::FILE, base::MessageLoop::current()) {
137 val1_.reset(Value::CreateStringValue(key1_ + "Value")); 137 val1_.reset(Value::CreateStringValue(key1_ + "Value"));
138 val2_.reset(Value::CreateStringValue(key2_ + "Value")); 138 val2_.reset(Value::CreateStringValue(key2_ + "Value"));
139 val3_.reset(Value::CreateStringValue(key3_ + "Value")); 139 val3_.reset(Value::CreateStringValue(key3_ + "Value"));
140 140
141 list1_.push_back(key1_); 141 list1_.push_back(key1_);
142 list2_.push_back(key2_); 142 list2_.push_back(key2_);
143 list3_.push_back(key3_); 143 list3_.push_back(key3_);
144 list12_.push_back(key1_); 144 list12_.push_back(key1_);
145 list12_.push_back(key2_); 145 list12_.push_back(key2_);
146 list13_.push_back(key1_); 146 list13_.push_back(key1_);
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 } 471 }
472 { 472 {
473 ValueStoreChangeList changes; 473 ValueStoreChangeList changes;
474 changes.push_back(ValueStoreChange(key3_, val3_->DeepCopy(), NULL)); 474 changes.push_back(ValueStoreChange(key3_, val3_->DeepCopy(), NULL));
475 changes.push_back( 475 changes.push_back(
476 ValueStoreChange("qwerty", val3_->DeepCopy(), NULL)); 476 ValueStoreChange("qwerty", val3_->DeepCopy(), NULL));
477 EXPECT_PRED_FORMAT2(ChangesEq, changes, storage_->Clear()); 477 EXPECT_PRED_FORMAT2(ChangesEq, changes, storage_->Clear());
478 EXPECT_PRED_FORMAT2(ChangesEq, ValueStoreChangeList(), storage_->Clear()); 478 EXPECT_PRED_FORMAT2(ChangesEq, ValueStoreChangeList(), storage_->Clear());
479 } 479 }
480 } 480 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698